Alexander A.
TTypebot
•Created by Alexander A. on 5/18/2024 in #help-and-questions
Error from Typebot server: SyntaxError: Unexpected end of JSON input
Hi mate, sorry for my dealy in answer your question.
I was getting this issue when:
1. Add a HTTP request block in your typebot
2. Add an API call to an endpoint that response with 204, meaning not giving you an body json response.
3. This triggered the issue I was getting previously.
Note: I think typebot is specting always an body json response, however 204 returns empty and trigger this issue, I solve by my own responding with 202 instead of 204, but that correct response from my API should be 204 🙂
References
https://httpwg.org/specs/rfc7231.html#status.204
5 replies
TTypebot
•Created by Alexander A. on 4/28/2024 in #help-and-questions
Getting 404 trying to startChat & startChat preview API

10 replies
TTypebot
•Created by Alexander A. on 4/28/2024 in #help-and-questions
Getting 404 trying to startChat & startChat preview API
Hi Baptiste thanks for your answer, I'm a little bit confuse
NEXTAUTH_URL is only for the builder or it's also associated with the api too?
10 replies