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

vite-plugin-http2-proxy timeout是我哪里配置出了问题吗 #169

Closed
shaokeke opened this issue Apr 8, 2024 · 2 comments
Closed

vite-plugin-http2-proxy timeout是我哪里配置出了问题吗 #169

shaokeke opened this issue Apr 8, 2024 · 2 comments
Labels

Comments

@shaokeke
Copy link

shaokeke commented Apr 8, 2024

[vite] Internal server error: proxy timeout
at ClientRequest.onProxyReqTimeout (D:\company\vue\vue3-antdv-admin\node_modules.pnpm\http2-proxy@5.0.53\node_modules\http2-proxy\index.js:227:25)
at ClientRequest.emit (node:events:518:28)
at Socket.emitRequestTimeout (node:_http_client:840:9)
at Object.onceWrapper (node:events:632:28)
at Socket.emit (node:events:530:35)
at Socket._onTimeout (node:net:589:8)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

image

@buqiyuan
Copy link
Owner

buqiyuan commented Apr 8, 2024

🤔 不是很清楚,我在不同电脑上都没复现,必现吗?影响程序正常运行不?
本地开发不需要 http2 的话,可以注释掉该插件:

Http2Proxy(),

@shaokeke
Copy link
Author

shaokeke commented Apr 9, 2024

我找到问题了,nodejs版本问题,18.18.2没有问题,使用20.11.1是有问题的,已经注释该插件了,注释后不影响使用的

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

No branches or pull requests

2 participants