Closed tianlu1677 closed 5 years ago
The messageType
needs to be an integer. I think you need to check your post method, it might mess up with the data type, and changed it to be a string.
Try to change content-type
to be application/json
Becase when you receiver params,it always string. I guess you should parse string to integer.
I try Content-Type 'application/json', or form-data. Could you give me a simple example? Thanks. @windmemory
It is not params, it should be body, because this is a post request.
type needs to be application json. You can start a dev server and post the message youself to your server, and see if the data type you sent is right.
Thank you. I success. We should data.to_json and content_type: 'application/json'
When I use postman to send message I got this error.