Skip to content

[Bug]: Files cannot be uploaded to Azure Assistants #6568

@mansiibm

Description

@mansiibm

What happened?

Hi, thanks for the RAG update!!! . I am using the dev version - danny-avila/librechat-dev-api:3ba7c4eb19d136680ae5c31c27e1cd025bfd80fa and the latest RAG.

For my azure assistants , I am unable to upload the files. The versions of the apis I tried-

2024-02-15-preview
2025-01-01-preview

Both are not helping assistant to work with the files.

Version Information

Using LC version - ghcr.io/danny-avila/librechat-dev-api:3ba7c4eb19d136680ae5c31c27e1cd025bfd80fa

Rag- danny-avila/librechat-rag-api-dev:19d8f4d86856f4d165e7d38086ec660a4861be9e

tried both api - version for azure - 2024-02-15-preview
2025-01-01-preview

Steps to Reproduce

  1. Use the latest RAG
  2. Use the dev version for the LC- danny-avila/librechat-dev-api:3ba7c4eb19d136680ae5c31c27e1cd025bfd80fa .
  3. Create an azure assistant on the UI for LC.
  4. Try uploading file from the prompt bar, upload file button it fails with Error processing file

What browsers are you seeing the problem on?

No response

Relevant log output

2025-03-27T13:08:17.357001579Z {"level":"debug","message":"[saveConvo] api/server/services/Endpoints/agents/title.js","timestamp":"2025-03-27T13:08:17.356Z"}
2025-03-27T13:09:51.639817464Z {"level":"error","message":"[saveBufferToAzure] Error uploading buffer: Cannot read properties of null (reading 'createIfNotExists')","stack":"TypeError: Cannot read properties of null (reading 'createIfNotExists')\n    at saveBufferToAzure (/app/api/server/services/Files/Azure/crud.js:33:27)\n    at uploadFileToAzure (/app/api/server/services/Files/Azure/crud.js:153:27)\n    at async processFileUp...","timestamp":"2025-03-27T13:09:51.639Z"}
2025-03-27T13:09:51.640082127Z {"level":"error","message":"[uploadFileToAzure] Error uploading file: Cannot read properties of null (reading 'createIfNotExists')","stack":"TypeError: Cannot read properties of null (reading 'createIfNotExists')\n    at saveBufferToAzure (/app/api/server/services/Files/Azure/crud.js:33:27)\n    at uploadFileToAzure (/app/api/server/services/Files/Azure/crud.js:153:27)\n    at async processFileUp...","timestamp":"2025-03-27T13:09:51.639Z"}
2025-03-27T13:09:51.640232157Z {"level":"error","message":"[/files] Error processing file: Cannot read properties of null (reading 'createIfNotExists')","stack":"TypeError: Cannot read properties of null (reading 'createIfNotExists')\n    at saveBufferToAzure (/app/api/server/services/Files/Azure/crud.js:33:27)\n    at uploadFileToAzure (/app/api/server/services/Files/Azure/crud.js:153:27)\n    at async processFileUp...","timestamp":"2025-03-27T13:09:51.640Z"}

Screenshots

Image

Image

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions