ApollonetWorkexception在Android上的Apollo突变时

发布于 2025-01-29 10:57:33 字数 679 浏览 2 评论 0原文

我正在为Android使用apolloclient。有时,一个突变API因apollonetworkexception而失败。问题是我无法在调试中产生。当我有一些firebase 非致命日志时,此例外发生在实时版本中。我在这个例外收到的消息是

无法执行HTTP调用

调用为apollonetworkexception没有任何代码,所以我感到困惑,这是服务器端问题应用程序附加问题吗?

无法执行HTTP呼叫异常消息时,会抛出吗?

我只收到异常消息,所以我无法弄清楚怎么了。

我使用的是Apollo版本1.3.2 apollo-rx2-support

我的API呼叫代码段就像

val mutation = ....
ApolloProvider.getApolloNetworkClient(...url...)
                .rxMutate(mutation)
                .map{

                }

请帮助我找出原因。

提前致谢。

I am using ApolloClient for Android. Sometime one mutation api failed with ApolloNetworkException. Problem is i can't generate in debugging. This exception occurs sometime in live version as i got some firebase non fatal log for this. And the message i got for this exception is

Failed to execute http call

As ApolloNetworkException don't have any code so i got confused that is it server side issue of application side issue?

When Failed to execute http call exception message is thrown?

I only get exception message so i can't figure out whats going wrong.

I am using Apollo version 1.3.2 with apollo-rx2-support.

My api call code snippet is like

val mutation = ....
ApolloProvider.getApolloNetworkClient(...url...)
                .rxMutate(mutation)
                .map{

                }

Please help me to find out the cause.

Thanks in advance.

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

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

发布评论

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