goeasy Failed to publish message

goeasy Failed to publish message

部分开发者在使用GoEasy的过程中,有时候会遇到这个报错:

content:Failed to publish message 

问题解答:

消息发送失败。

原因分析:

消息发送失败的原因比较多,大致有以下几种原因:

1、消息长度超出大小:goEasy的pubsub模式最大支持5k的消息,超出5k就发送不出去。

2、不支持的内容格式:建议在消息发送前,使用JSON.stringfy()将消息内容转换为json格式的字符串再发送。

3、同GoEasy服务器的连接失败:可参考https://www.goeasy.io/articles/1124.html

Comments are closed.