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

Node 最新版本 enableProxy 导致找不到 x-oss-request-id #1245

Open
cipchk opened this issue Sep 1, 2023 · 4 comments
Open

Node 最新版本 enableProxy 导致找不到 x-oss-request-id #1245

cipchk opened this issue Sep 1, 2023 · 4 comments

Comments

@cipchk
Copy link

cipchk commented Sep 1, 2023

原因

主要是 urllib 依赖包里面的 proxy-agent 为可选项,所以如果要想让代理生效,需要自行加入:

"proxy-agent": "^5.0.0"

建议 ali-oss 要么直接依赖它,或者在 README 当中进一步说明。

@zlswzy
Copy link

zlswzy commented Oct 17, 2023

请问proxy-agent这个依赖要添加到当前项目的package.json里么,还是别的地方呢,我也遇到了这个问题,但是添加之后依然无法生效

@JaremyCheng
Copy link

一样遇到这个问题, 项目增加proxy-agent依赖也不行

@cipchk
Copy link
Author

cipchk commented Nov 23, 2023

请问proxy-agent这个依赖要添加到当前项目的package.json里么,还是别的地方呢,我也遇到了这个问题,但是添加之后依然无法生效

是的,就是在你的 package.json 中加入。

@DevinXian
Copy link

Works for me,many thanks

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

4 participants