Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements not retrieved from AWS Bucket #1798

Open
dn-scribe opened this issue Jan 24, 2025 · 1 comment
Open

Elements not retrieved from AWS Bucket #1798

dn-scribe opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working data layer Pertains to data layers. needs-triage

Comments

@dn-scribe
Copy link

Describe the bug
I set up an S3 bucket according the the official data model.
I create a Plotly chart as an element an it is presented.
When refreshing the page I get: "an error occurred" in the UX,
When examining with developer tools I get:

Access to fetch at 'https://my_bucket.s3.amazonaws.com/threads/a8094cf3-34b0-4fd7-9806-e67d01c139c1/files/vulnerability_chart?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA6GBMHSSRN3A64FHE%2F20250124%2Fil-central-1%2Fs3%2Faws4_request&X-Amz-Date=20250124T120947Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=51be1afa241c41b25dbf12fb00dc4001a28749002b039f3b1f53382a4baefa03' from origin 'https://my-app.my_org.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

The AWS CORS is set to accept any origin `["*"]'

To Reproduce
Expected behavior
To work.

Screenshots
None.

Desktop (please complete the following information):
Happens both on my Mac in debug mode, and when running on AWS EKS.

Additional context
Things did work properly when using minio an and S3 bucket emulator.

@dosubot dosubot bot added bug Something isn't working data layer Pertains to data layers. labels Jan 24, 2025
@JamesLloydPartingtonSerendipityai

I am getting a similar issue on chainlit v2.0.6 with AWS bucket. I also have allow_origins = ["*"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working data layer Pertains to data layers. needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants