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

Getting openai.error.APIError: HTTP code 502 from API #7

Open
sganesan18 opened this issue Aug 8, 2023 · 1 comment
Open

Getting openai.error.APIError: HTTP code 502 from API #7

sganesan18 opened this issue Aug 8, 2023 · 1 comment

Comments

@sganesan18
Copy link

Retrying langchain.llms.openai.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIError: HTTP code 502 from API ()

Getting the below error:
Traceback (most recent call last):
sqlgpt-main-application-1 | File "/app/app.py", line 92, in api_answer
sqlgpt-main-application-1 | answer, thought = sql_agent.run(question)
sqlgpt-main-application-1 | File "/app/AzureOpenAIUtil/SqlServer.py", line 30, in run
sqlgpt-main-application-1 | answer = self.agent_executor.run(text)
sqlgpt-main-application-1 | File "/usr/local/lib/python3.10/site-packages/langchain/chains/base.py", line 213, in run
sqlgpt-main-application-1 | return self(args[0])[self.output_keys[0]]
sqlgpt-main-application-1 | File "/usr/local/lib/python3.10/site-packages/langchain/chains/base.py", line 116, in _call

@sganesan18 sganesan18 changed the title openai.error.APIError: HTTP code 502 from API Getting openai.error.APIError: HTTP code 502 from API Aug 8, 2023
@lixiaoyaois
Copy link

HTTP code 502 from API () 大佬们这个怎么解决 我自己搭建的NLP模型要接入api接口

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants