Oh me too. Help me
Q&A
Sometime request reply api or push api then response error ECONNRESET
Sometime request reply api (https://api.line.me/v2/bot/message/reply) or push api (https://api.line.me/v2/bot/message/push)
then response error ECONNRESET
{"name" : "Error", "message": "read ECONNRESET"}
I use these api from node-red tool (base on node.js) in httprequest box
So this is example of request body for send in reply api
{ "messages": [ { "type": "text", "text": "XXXXXXXXXX" } ], "to": "U94c1cXXXXXXXXXXXXXXXXXXXXXXXXX", "replyToken": "XXXXXXXXXXXXXXXXXXXXXXXXXXX" }
and this example headers for send in reply api or push api
{ "Authorization": "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "Content-Length": 5429, "Content-Type": "application/json" }
I'm sure that the body, userId and token are correct, but sometime return ECONNRESET.
Did i do someting wrong or missing for sending these api? Please help, thanks.