Error: Unexpected end of JSON input in webhook mode
Roker2 opened this issue · 8 comments
Hi! I updated you package and got this error in logs:
level=info msg="Starting webhook"
level=fatal msg="Failed to start bot due to: unexpected end of JSON input" error="unexpected end of JSON input"
If bot use Long Polling mode, it work without any errors.
That commit doesn't change anything. I've seen this before - it's a weird error that sometimes, and that I haven't found the root cause for yet.
Only seen it happen in setwebhook though.
If you try again, with this commit included - can you confirm it still doesn't work?
I added it, I got this error again.
I understood. It doesn't add "/" symbol.
Like this
https://calm-cove-01177.herokuapp.comTOKEN
But I need to get
https://calm-cove-01177.herokuapp.com/TOKEN
I opened pull request.
#9
I checked https://calm-cove-01177.herokuapp.com and https://calm-cove-01177.herokuapp.com/, it works.
But now, it breaks if you use /text
as a path.
This should now be fixed on master, as well as improved error handling to avoid similarly unhelpful errors.
Let me know if there's anything else I can help with.
Webhook mode is working, thanks!