Apollo Server Express 3在一段时间后返回意外的空值

发布于 2025-02-10 04:44:20 字数 217 浏览 1 评论 0原文

Apollo Server Express V3的工作原理就像魅力一样,它返回正确 但是,在间隔登录服务器一段时间后, 它返回了空的,而不是我在服务器控制台日志中看到的正确响应

,即返回的值在解析器中是正确的,但是与GraphQl本身有关的东西会混乱。

服务器重新启动后,它再次工作正常。

这偶尔出于明显的原因而偶尔发生。

有人遇到了同样的问题并为此提供解决方案?

Apollo server express v3 works like a charm, and it returns properly
however, after a while of hitting server on intervals,
it returns null instead of the correct response

I can see in the server console log that the returned value is correct in the resolver, but something gets messed up with the graphql itself.

After server restart, it works fine again.

This occurs every once in a while for no apparent reason.

Has anyone encountered the same issue and have a solution for it?

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

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

发布评论

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