-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
api service sometimes waits for a long time, may be related to calling github? #13454
Comments
I found a similar closed issue where users experienced long wait times for API responses, but no solution was found in the comments [1]. Regarding your concern about accessing If the issue persists, you might want to explore network-related settings and optimizations documented in Dify's configuration or setup guides, such as adjusting timeouts or configuring proxies [2]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
This service should be triggered when import the DSL from the github repo. Can you confirm that when other endpoint will not be affected when this is not called? |
We don't have any code to fetch https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json, could you provider more detail about this URL? |
That being said, this is imported by me (^_^;)? I don't remember when it was imported, |
@laipz8200 I'm still not sure how it works and if my problem is related to this file,i will try it myself |
You're correct; this URL fetch happens every time I restart my local service. |
This means we can delay the import timing of the opik SDK to avoid the fetch operation for users who don't use it. |
@laipz8200 |
Any other clues? |
Self Checks
Dify version
0.15.0、0.15.1、0.15.2、0.15.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
After upgrade to 0.15 from 0.14, api service sometimes waits for a long time or failed.
I found api service will get https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json,because of my server's network, it is not stable to get raw.githubusercontent.com. I haven't confirmed in detail what it does.
ping result:

I'm not sure if it's related to this issu. If so, i think direct access to github is unreasonable, is there any solution?
✔️ Expected Behavior
Api service can be accessed normally
❌ Actual Behavior
Api service sometimes wait for a long time, unstable
The text was updated successfully, but these errors were encountered: