langchain-ai / story-writing

102 stars 24 forks source link

Issue with 403 Forbidden Error: Missing Authentication Headers in Streamlit App #4

Open guanyuhoujeff opened 1 month ago

guanyuhoujeff commented 1 month ago

Dear author,

I encountered an issue while running the Streamlit app on your GitHub repository. The app throws a 403 Forbidden error due to missing authentication headers when trying to call the assistants.search() function. Below is the error traceback:

2024-08-23 21:22:55.498 Uncaught app exception
Traceback (most recent call last):
  ...
httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://ht-mundane-strait-97-7d4d2b12ec9c54a4aa34492a954c-g3ps4aazkq-uc.a.run.app/assistants/search'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
{"detail":"Missing authentication headers"}

It seems that the client.assistants.search() function requires authentication headers that are not being provided. Could you please advise on how to properly configure the authentication headers or provide the necessary environment variables?

If you need further information or a screenshot of the issue, please let me know. Thank you for your help!

螢幕擷取畫面 2024-08-23 215415

guanyuhoujeff commented 1 month ago

Sorry, this is my problem. The problem will be solved if you replace the url with your own langgraph api.