-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Network error #8
Comments
This is most likely due to slow network or OpenAI/SERP requests return 500 response. Few things to check: |
@coderFrankenstain thanks for trying those curl commands. Is this occurring on Agent only, does it works for Chains? |
@HenryHengZJ I try to run this demo https://js.langchain.com/docs/modules/agents/agents/examples/llm_mrkl ,it return error like this |
How about this issue? I meet the same problem |
@wjhtinger 国内运行是要代理的,可以用tunnel代理。 |
我在windows上装的,windows有代理,可以访问外网,这样也不行? |
Do you know which file specifically needs to be modified? Thank you very much. |
Axios which is used by Flowise does not respect your local proxy config, so you must modify Flowise code to use your proxy. |
请问你知道应该修改哪个文件的代码来设置proxy吗 |
我也想知道
xShuisheng ***@***.***>于2023年6月30日 周五11:59写道:
… @wjhtinger <https://github.com/wjhtinger> 国内运行是要代理的,可以用tunnel代理。 参考:
openai/openai-quickstart-node#79
<openai/openai-quickstart-node#79>
我在windows上装的,windows有代理,可以访问外网,这样也不行?
Axios which is used by Flowise does not respect your local proxy config,
so you must modify Flowise code to use your proxy.
请问你知道应该修改哪个文件的代码来设置proxy吗
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6WQJXKBFHZFRKBROF7WTITXNZFITANCNFSM6AAAAAAW53DU4M>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
试了好像之前的一些版本不会有这个问题,可能还是代码的bug导致的,你可以试试旧的版本 |
哪个版本没有问题呀?我折腾好几天了 |
|
请问有找到是需要修改哪个文件吗?不管是docker里的还是,yarn install回来的,我没有找到这个对应openai.js文件对应修改的地方。 |
我也下载了flowise1.2.1版本代码,yarn install yarn build yarn start以后依然访问会失败network error,我有梯子,直接访问openai的api可以访问。 |
找到办法了,已经解决。 |
您好 请问如何解决的可以讲一下吗 谢谢 我尝试给axios.create增加代理 但是无效 |
源码方式运行就是需要修改npm install之后的node_modules目录下openai目录下/dist/目录下的 base.js docker方式的,进入到docker容器里,找到lib下的node_modules下相同位置的文件。改的内容一样 |
好的 多谢 |
梯子地址是什么意思? |
|
大佬能把步骤再具体点的吗, 还有就是梯子地址尝试了填入https://api.chatanywhere.com.cn/v1去替换https://api.openai.com/v1; 所以想了解一下具体步骤和梯子地址该怎么设置呢? |
我用的是flowise 1.2.14版本。启动是yarn start。 |
I have been trying to figure out how to set a proxy with flowise but couldn't get it to work. From what I understand, flowise does not directly make http requests to the internet, but another library does. In my test cases, it seemed to be either langchain or openai. I tried to set a proxy in the global axios object Also, langchain seems to have an option to set a proxy with their python sdk, which is not the case with their js/ts lib. If someone has more information on what to change, I would be very happy to make the necessary changes, as cleanly as possible, and to open a PR. |
langchain-ai/langchainjs#2339 |
I have successfully coded it to use proxy. In my case, i have 2 major issues with my network.
So the 1st problem is easy to fix, we can add proxy per chat/agent module. But I can’t figure out a permanent fix for the 2nd problem. |
We have added a proxy params to OpenAI: #3153 |
I've set up my Chatflows and saved, and then I start talking to the bot, and it returns Network error.
Apple M1
macos 13.2.1
pics
The text was updated successfully, but these errors were encountered: