问题描述
调用 RESTful API 创建聊天组返回 500 错误,请帮忙给看看什么问题,谢谢。之前一直好好的,今天下午发现这样的错误比较多。 ERROR - 2016-04-05 16:19:57 --> EaseMobClient: Reponse code not 200 while call easemob service : 500ERROR - 2016-04-05 16:19:57 --> EaseMobClient: Reponse content from easemob service : chatgroups{"error":"service","timestamp":1459844397742,"duration":0,"exception":"org.apache.usergrid.services.exceptions.ServiceException","error_description":"internal server error:{"result":"uncaught_error","message":"500 error"}"}ERROR - 2016-04-05 16:19:57 --> Interaction_model::save_base create easemob chatgroup failed
解决方案
把你的request body贴出来看看呢
解决方案二:
Sorry……没有在日志中记录 Request Body现在就修改代码,记录一下 Request Body,下次再遇到问题也好分析一下。 目前正常了,谢谢。
解决方案三:
找到提交的数据了,请帮忙再看一下吧,谢谢。 INFO - 2016-04-05 16:19:57 --> Post data to easemob service:INFO - 2016-04-05 16:19:57 --> {"groupname":"ed5e8593f16cbd37ec13a570724ffc08","desc":"ed5e8593f16cbd37ec13a570724ffc08","public":true,"maxusers":500,"approval":false,"owner":"e2c1decc451af83d621bdc0d772bb7fe"}INFO - 2016-04-05 16:19:57 --> call easemob service: https://a1.easemob.com/mosoink/teach/chatgroupsERROR - 2016-04-05 16:19:57 --> EaseMobClient: Reponse code not 200 while call easemob service : 500ERROR - 2016-04-05 16:19:57 --> EaseMobClient: Reponse content from easemob service : chatgroups{"error":"service","timestamp":1459844397742,"duration":0,"exception":"org.apache.usergrid.services.exceptions.ServiceException","error_description":"internal server error:{"result":"uncaught_error","message":"500 error"}"}ERROR - 2016-04-05 16:19:57 --> Interaction_model::save_base create easemob chatgroup failed