将图像发送到 /上传时会出现错误

发布于 2025-01-28 05:48:51 字数 536 浏览 0 评论 0原文

我有一个节点应用程序,该应用程序将FormData发送到 /上传。我设计了该应用程序以每个文件发送一个请求。当我运行它发送40个请求时,它有效。我在50个测试请求之后再次运行了它,现在我在主机服务器上发送以下错误,同时使用PM2日志观看该过程:

0|football-strapi  |   Error: Parse Error
0|football-strapi  |       at socketOnEnd (_http_server.js:540:22)
0|football-strapi  |       at Socket.emit (events.js:326:22)
0|football-strapi  |       at endReadableNT (_stream_readable.js:1241:12)
0|football-strapi  |       at processTicksAndRejections (internal/process/task_queues.js:84:21)

有人在此问题上有经验吗?这是Strapi V3。

谢谢

I have a node application which sends formData to /upload. I designed the app to send one request per file. When I ran it sending 40 requests, it worked. I ran it again right after with 50 requests to test and now I'm sending the following error on the host server while watching the process with pm2 logs:

0|football-strapi  |   Error: Parse Error
0|football-strapi  |       at socketOnEnd (_http_server.js:540:22)
0|football-strapi  |       at Socket.emit (events.js:326:22)
0|football-strapi  |       at endReadableNT (_stream_readable.js:1241:12)
0|football-strapi  |       at processTicksAndRejections (internal/process/task_queues.js:84:21)

Does anyone have experience with this issue? This is Strapi v3.

Thank You

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文