Docker 反向代理部署 发生客户端异常,部分 JS 文件有时会出现 514 错误响应 #2195
-
💻 系统环境Ubuntu 📦 部署环境Docker 🌐 浏览器Chrome 🐛 问题描述Nginx 配置两个域名指向同一服务
访问 https://chat.fungs.cn/ 时,刷新多次后,部分 JS 文件有时会出现 514 错误响应。 而访问 gpt.fungs.cn 时,则一切运行正常。 GET https://chat.fungs.cn/_next/static/chunks/13695-40fba9481c53b990.js net::ERR_ABORTED 514 Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('https://chat.fungs.cn/') with script ('https://chat.fungs.cn/sw.js'): A bad HTTP response code (514) was received when fetching the script. 7528-2c20041b19b4c64b.js:1 ChunkLoadError: Loading chunk 13695 failed.
🚦 期望结果期望修复 📷 复现步骤此域名 https://chat.fungs.cn 进入刷新几次 出错URL(可正常访问):https://chat.fungs.cn/_next/static/chunks/app/chat/page-8199973102213c76.js 📝 补充信息No response |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
这个nginx配置问题感觉不是我们需要管的问题,自行找下解决方案? |
Beta Was this translation helpful? Give feedback.
-
This nginx configuration problem does not seem to be a problem that we need to deal with. Can we find a solution by ourselves? |
Beta Was this translation helpful? Give feedback.
-
好的,感谢。我也认为这可能是Nginx的问题。尽管Nginx配置相同,但更换为chat.*.*域名后就出现了问题。 |
Beta Was this translation helpful? Give feedback.
-
OK, thanks. I also think this might be an Nginx issue. Although the Nginx configuration is the same, problems occurred after changing to the chat.. domain name. |
Beta Was this translation helpful? Give feedback.
-
我也遇到了这个问题,本来他运行的很好,现在就无法使用了。 |
Beta Was this translation helpful? Give feedback.
-
I also encountered this problem. It used to run very well, but now it cannot be used. |
Beta Was this translation helpful? Give feedback.
-
我发现问题了。是我套了CDN取消就可以了 |
Beta Was this translation helpful? Give feedback.
-
I found a problem. I just used a CDN and canceled it. |
Beta Was this translation helpful? Give feedback.
-
我发现好像是反代缓存的问题,我每清理一次就可以了?可能你的cdn也缓存了? |
Beta Was this translation helpful? Give feedback.
-
I found that it seems to be a problem with the anti-generation cache. Is it ok if I clean it every time? Maybe your cdn is also cached? |
Beta Was this translation helpful? Give feedback.
-
是的,一些文件获取不正确。把缓存、CND关了就好 |
Beta Was this translation helpful? Give feedback.
-
Yes, some files were obtained incorrectly. Just turn off caching and CND. |
Beta Was this translation helpful? Give feedback.
是的,一些文件获取不正确。把缓存、CND关了就好