how do i fix this error, am currently creating a S...
# support
l
Error uploading file: BadRequestError: BadRequestError Status code: 400 Body: { "message": "Couldn't Upload File. Supported Mime Types: text/markdown, application/pdf, text/plain, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document. Provided Mime Type: application/octet-stream", "error": "Bad Request", "statusCode": 400 } at Files.eval (Client.js:134:31) at Generator.next () at fulfilled (Client.js:31:58) https://cdn.discordapp.com/attachments/1310665727149342893/1310665727346343946/screenshot20241125185643.png?ex=67460c14&is=6744ba94&hm=4a5477f9872b69a049650c92a3f8193e76c8e15fe807d7dd46207a876f53c52c&
v
You can continue this conversation by mentioning me in the message.
@Leox It seems like there was an issue with the file you attempted to upload. The error message indicates that the file's MIME type is
application/octet-stream
, which is not supported. VAPI accepts the following MIME types:
text/markdown
,
application/pdf
,
text/plain
,
application/msword
, and
application/vnd.openxmlformats-officedocument.wordprocessingml.document
. To resolve this issue, please ensure that the file you are trying to upload matches one of the supported MIME types. If you need further assistance or have any other questions, feel free to ask!
l
The issue is that the file is a pdf file and still it shows application/octet-stream
v
@Leox I understand the confusion. This can sometimes happen if the file's MIME type is not being correctly identified or set when the upload request is made. Here are a few steps you can take to troubleshoot and resolve this issue: 1. **Check the File Extension**: Ensure that the file you are uploading has the correct
.pdf
file extension. 2. **Set MIME Type Manually**: If you have control over the code that's uploading the file, explicitly set the MIME type to
application/pdf
in the request headers. 3. **Inspect the File**: Make sure the file is not corrupted and is a valid PDF. You can try opening it with a PDF reader to verify. 4. **Re-save the File**: Sometimes, saving the file again using a PDF writer or printer can help set the correct MIME type. 5. **Use a Different Tool**: If you're using a specific tool or library to upload the file, try using a different one to see if the issue persists. If you've tried these steps and the problem continues, please provide more details or the code snippet you're using to upload the file, and I'll do my best to assist you further.
l
still the same issue
s
@Leox as of know we have disabled our KB services for this week, because our previous vendor has closed their services. So I suggest waiting for this week for KB new features and changes #1211483332496465962
Do let me know your thoughts on this.
4 Views