Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
8000 [Bug]: Agent images frequently broken when using S3 CDN · Issue #10145 · danny-avila/LibreChat · GitHub {"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Agent images frequently broken when using S3 CDN","articleBody":"### What happened?\n\nI'm using the S3 CDN. When I upload an agent image, the generated signed S3 URL is broken in some parts of the UI.\n\n\n\n### Version Information\n\n0.8.0-RC4\n\n### Steps to Reproduce\n\nConfig.yaml\n```\nfileStrategy: \"s3\"\n```\n\nEnv Vars\n```\nAWS_REGION=us-east-1\nAWS_BUCKET_NAME=librechat-cdn-bucket\n```\n\n1. Upload an agent image\n2. Wait a little while\n3. Reload the page\n\nExpected: Agent images render in the model dropdown and the model chat.\nActual: Agent images are broken due to expired signed S3 image hrefs. Manually refreshing the page a few times fixes the issue for a short while.\n\n### What browsers are you seeing the problem on?\n\nChrome\n\n### Relevant log output\n\n```shell\nBroken S3 link\n\nhttps://librechat-cdn-bucket.s3.us-east-1.amazonaws.com/images/68ed5ea215f7372617bcdf60/agent-agent_V3h3M4ZXXhXogyMSht_f7-avatar-1760536776704.png?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Content-Sha256=UNSIGNED-PAYLOAD\u0026X-Amz-Credential=[REDACTED]\u0026X-Amz-Date=20251015T160408Z\u0026X-Amz-Expires=120\u0026X-Amz-Security-Token=[REDACTED]\u0026X-Amz-Signature=fc873fe1137727886ca3ea62c19adc17c884bda5a14dbdb5ee1518723b0b7c5d\u0026X-Amz-SignedHeaders=host\u0026x-amz-checksum-mode=ENABLED\u0026x-id=GetObject\n\n\nS3 response for the broken bucket\n\n\u003cError\u003e\n \u003cCode\u003eAccessDenied\u003c/Code\u003e\n \u003cMessage\u003eRequest has expired\u003c/Message\u003e\n \u003cX-Amz-Expires\u003e120\u003c/X-Amz-Expires\u003e\n \u003cExpires\u003e2025-10-15T16:06:08Z\u003c/Expires\u003e\n \u003cServerTime\u003e2025-10-16T13:35:45Z\u003c/ServerTime\u003e\n \u003cRequestId\u003eN7BXY5XZE0J71FT3\u003c/RequestId\u003e\n \u003cHostId\u003efEoCX+uGa1KteWLfCJnWqXyQos+BJvXrZ9QJiU2UrTY5ryJ9oM7l6DKkGyAYNfICzFNUytLLyBE=.\u003c/HostId\u003e\n\u003c/Error\u003e\n```\n\n### Screenshots\n\n\u003cimg width=\"1194\" height=\"547\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/64e4b121-ff76-4118-bd7b-588232f69aa3\" /\u003e\n\n### Code of Conduct\n\n- [x] I agree to follow this project's Code of Conduct","author":{"url":"https://github.com/rmichela","@type":"Person","name":"rmichela"},"datePublished":"2025-10-16T13:53:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/10145/LibreChat/issues/10145"}
Nothing Special   »   [go: up one dir, main page]

Skip to content

[Bug]: Agent images frequently broken when using S3 CDN #10145

@rmichela

Description

@rmichela

What happened?

I'm using the S3 CDN. When I upload an agent image, the generated signed S3 URL is broken in some parts of the UI.

Version Information

0.8.0-RC4

Steps to Reproduce

Config.yaml

fileStrategy: "s3"

Env Vars

AWS_REGION=us-east-1
AWS_BUCKET_NAME=librechat-cdn-bucket
  1. Upload an agent image
  2. Wait a little while
  3. Reload the page

Expected: Agent images render in the model dropdown and the model chat.
Actual: Agent images are broken due to expired signed S3 image hrefs. Manually refreshing the page a few times fixes the issue for a short while.

What browsers are you seeing the problem on?

Chrome

Relevant log output

Broken S3 link

https://librechat-cdn-bucket.s3.us-east-1.amazonaws.com/images/68ed5ea215f7372617bcdf60/agent-agent_V3h3M4ZXXhXogyMSht_f7-avatar-1760536776704.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=[REDACTED]&X-Amz-Date=20251015T160408Z&X-Amz-Expires=120&X-Amz-Security-Token=[REDACTED]&X-Amz-Signature=fc873fe1137727886ca3ea62c19adc17c884bda5a14dbdb5ee1518723b0b7c5d&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject


S3 response for the broken bucket

<Error>
   <Code>AccessDenied</Code>
   <Message>Request has expired</Message>
   <X-Amz-Expires>120</X-Amz-Expires>
   <Expires>2025-10-15T16:06:08Z</Expires>
   <ServerTime>2025-10-16T13:35:45Z</ServerTime>
   <RequestId>N7BXY5XZE0J71FT3</RequestId>
   <HostId>fEoCX+uGa1KteWLfCJnWqXyQos+BJvXrZ9QJiU2UrTY5ryJ9oM7l6DKkGyAYNfICzFNUytLLyBE=.</HostId>
</Error>

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

      0