You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m encountering a problem when trying to resume a previously saved chat. Instead of seeing my Pandas dataframe, I get a "failed to fetch" error, and in place of the chart, I see an "an error occurred" message.
When I check the browser console, there is a CORS error indicating that the server returns Access-Control-Allow-Origin: * (not allowed when credentials are involved). This seems related to displaying the chart in particular, because if I only try to restore the dataframe, the CORS error does not appear.
Here’s a summary of what I’ve tried:
Modified config.toml with specific origins (e.g., "http://localhost", "http://localhost:80", "http://localhost:8000") to replace "*" as advised by the Chainlit docs.
Restarted and rebuilt Docker containers to ensure the updated config was picked up.
Verified that the config changes were indeed present inside the container.
Tested again to see if the error persists—and it does.
Even with these steps, the error remains:
"failed to fetch" instead of the dataframe,
"an error occurred" (with a CORS console message) for the chart.
Interestingly, if I only re-display the dataframe without the chart, I do not see the CORS error, so it looks like the chart retrieval triggers the cross-origin issue. I’m suspecting there might be a separate underlying problem for the dataframe fetch as well (since the error is "failed to fetch" but not strictly flagged as CORS in that specific scenario).
Any help or guidance on how to resolve these issues would be greatly appreciated. I’d like to properly restore my chat (both dataframe and chart) without running into these fetch/CORS errors.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
[Chainlit 2.0.1]
Hello everyone,
I’m encountering a problem when trying to resume a previously saved chat. Instead of seeing my Pandas dataframe, I get a "failed to fetch" error, and in place of the chart, I see an "an error occurred" message.
When I check the browser console, there is a CORS error indicating that the server returns Access-Control-Allow-Origin: * (not allowed when credentials are involved). This seems related to displaying the chart in particular, because if I only try to restore the dataframe, the CORS error does not appear.
Here’s a summary of what I’ve tried:
Modified config.toml with specific origins (e.g., "http://localhost", "http://localhost:80", "http://localhost:8000") to replace "*" as advised by the Chainlit docs.
Restarted and rebuilt Docker containers to ensure the updated config was picked up.
Verified that the config changes were indeed present inside the container.
Tested again to see if the error persists—and it does.
Even with these steps, the error remains:
"failed to fetch" instead of the dataframe,
"an error occurred" (with a CORS console message) for the chart.
Interestingly, if I only re-display the dataframe without the chart, I do not see the CORS error, so it looks like the chart retrieval triggers the cross-origin issue. I’m suspecting there might be a separate underlying problem for the dataframe fetch as well (since the error is "failed to fetch" but not strictly flagged as CORS in that specific scenario).
Any help or guidance on how to resolve these issues would be greatly appreciated. I’d like to properly restore my chat (both dataframe and chart) without running into these fetch/CORS errors.
Thanks in advance!
The text was updated successfully, but these errors were encountered: