-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: axios set proxy https agent, timeout tip #10853
Conversation
xyuanbuilds
commented
Mar 26, 2023
- 使用命令行代理时会配置 http_proxy 环境变量,axios需额外传递 httpsAgent 否则无法获取请求结果https://github.com/axios/axios/issues/2072#issuecomment-567473812
- 超时提示使用代理服务器,而非直接请求openai
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #10853 +/- ##
==========================================
- Coverage 29.35% 29.27% -0.09%
==========================================
Files 472 478 +6
Lines 14276 14316 +40
Branches 3360 3367 +7
==========================================
Hits 4191 4191
- Misses 9368 9404 +36
- Partials 717 721 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
scripts/bundleDeps.ts
Outdated
@@ -177,7 +177,8 @@ Object.keys(exported).forEach(function (key) { | |||
code.includes('"node:') && | |||
opts.pkgName && // skip local file bundle like babel/bundle.js | |||
opts.pkgName !== 'stylelint-declaration-block-no-ignored-properties' && | |||
opts.pkgName !== 'vite' | |||
opts.pkgName !== 'vite' && | |||
opts.pkgName !== 'https-proxy-agent' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以加到上面 replace node:
前缀的逻辑里。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace之后还是会报错,文件中也没有node:的引入,具体原因不明,不太懂是不是因为 /// <reference types="node" />
冲突了,merge 下 master,记得升 pnpm 到 8 。 |
已合并,修改了符合 pnpm 8 的lock |