Does anyone know if it’s possible to somehow return success from API endpoint before it actually terminates? We have a quite complex workflow associated with an endpoint which runs about 10-15 seconds and that triggers time outs on the initiating part.
I tried return data from API but that trick doesn’t work. @emmanuel any suggestions?
Telegram sends webhooks to that endpoint, and when you click a button in the telegram bot it shows as pending and in Telegram X is even giving a “bot not responding” error. Even though user already received a reply, but the workflow still processes some important actions
I have not played with telegram before, I just had a look at it. how are you implementing the bot? ie. are you writing the script or using api calls to push data and defining the web hooks elsewhere? If the user has already received a reply is this suggesting that the error is not that the call doesn’t finish in time but more that the call runs and perhaps the sign/verify web hook or a needed peram is not returning correctly?
it all works fine, except that it takes too much time, and until the workflow runs till the end Telegram shows a rotating circle on the button as if the message was not yet received, although it was, and the user received the reply, but the endpoint contains other actions which are processed after sending the reply.
the bot is simply API calls made to Telegram to send message, photo etc, and then Telegram sends back a webhook with users inputs…
not sure what Bubble sends, when i insert terminate this workflow, then it’s fine. there’s clearly some difference between what Bubble sends at the end of the workflow, and what Bubble sends with “return data from API”
Hi, I’ve had a similar issue while using Slack API, as I need to respond to user input from Slack immediately.
Since I’m just learning how all this works I’m a little lost with how to do this last part. Are you referring to creating a new API call in the API connector that uses a specific POST method, which I then use when I schedule API workflow?
I currently need to return a application/json format that looks a little like this when the user puts in an email that doesnt exist in my bubble app, or a name;
{
“errors”: [
{
“name”: “email_address”,
“error”: “Sorry, this email domain is not authorized!”
},
{
“name”: “username”,
“error”: “Uh-oh. This username has been taken!”
}
]
}