Skip to content

[Bug]: There was an uncaught error: bad auth : authentication failed #7890

@NickCarney

Description

@NickCarney

What happened?

When trying to develop locally (npm run backend) and when deploying to hugging face (during build) I get this error.

I am new here and trying to learn.

Version Information

1bd8745

Steps to Reproduce

following steps with hugging face remote hosting:

  1. create account
  2. duplicate the space
  3. fill secrets and variables (omitted BINGAI)
  4. duplicate space (happens during build)

following steps for development:

  1. fork repo, make new branch, clone into vs code
  2. npm ci
  3. npm run frontend
  4. npm run backend

What browsers are you seeing the problem on?

Safari

Relevant log output

Runtime error
Exit code: 1. Reason: 
> LibreChat@v0.7.8 backend
> cross-env NODE_ENV=production node api/server/index.js

2025-06-13 21:10:52 �[32minfo�[39m: �[32m[Optional] Redis not initialized.�[39m
2025-06-13 21:10:53 �[32minfo�[39m: �[32m[Optional] IoRedis not initialized for rate limiters.�[39m
2025-06-13 21:10:53 �[31merror�[39m: �[31mThere was an uncaught error: bad auth : authentication failed�[39m

Screenshots

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