无法通过 MQTT 发布请求 - Flutter - 解析服务器

问题描述

我有一个使用 Parse Server 的示例应用程序。我一直在模拟器和物理设备上测试我的应用,我注意到物理设备上的响应时间要慢得多。

这个来自模拟器。

network logs from the emulator

这是来自物理设备的一个

network logs from the physical device

我一直在为这个问题挠头。我还在 parse 社区平台上发布了它,并按照那里的建议手动监控我所做的每项更改的服务器,直到我达到我之前的服务器配置。我从头开始大修服务器。做一些负载测试 -> 在副本集上部署服务器 -> 负载测试。现在,我正在做一些基本的查询。我使用 ADB logcat 查看两台设备上发生的情况,并在物理设备上而不是在模拟器上看到了这些错误

E[N rtchannel]_rt_mqtt_publish_callback(356)=>Failed to publish the request over MQTT. token:be925eea-407c-417d-96c9-3af5a7e83e48,category:mcd-sync-data-task-category,requestId:54138,error:Error Domain=mqtt Code=3008
E[S sync]_createResponseError(166)=>Network Response be925eea-407c-417d-96c9-3af5a7e83e48 contains sync error Error Domain=mqtt Code=3008 - Underlying error (null): Error Domain=mqtt Code=3008

在拉取有效载荷之前也显示了这一点。

W[S sync-state-machine]MCDSyncStateMachinescheduleDelayedRetry(173)=>skipping the new retry with longer delay
W[S sync]_scheduleNextCursorRetry(326)=>skipping delayed retry due to state machine state decision

这些错误弹出的次数与执行的查询次数有关。我没有在使用 MQTT 的服务器上进行任何配置。非常感谢任何帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)