Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout after 15s, 502 Error GATEWAY TIMEOUT #57

Closed
luoanabecher opened this issue Aug 3, 2023 · 1 comment
Closed

Timeout after 15s, 502 Error GATEWAY TIMEOUT #57

luoanabecher opened this issue Aug 3, 2023 · 1 comment

Comments

@luoanabecher
Copy link

luoanabecher commented Aug 3, 2023

Hello,

Tested all notebooks and ran fine, deployed the backend web app with no errors but when testing it i get 'To continue to run this bot, please fix the bot source code. ' WHen i look at the Bot channels, both direct line & web chat have the same message for healthy status(issues): 'There was an error sending this message to your bot: HTTP status code GatewayTimeout' & when i do inspect in browser i see the POST call https://directline.botframework.com/v3/directline/conversations/XYZ-eu/activities with response:
{
"error": {
"code": "BotError",
"message": "Failed to send activity: bot timed out"
},
"httpStatusCode": 504
}

The same bot works in teams, but not in the frontend app, i also looked at all the backend webapp & frontend webapp configuration and checked all the values, including the BOT_DIRECTLINE_SECRET_KEY and it`s correct

@luoanabecher luoanabecher changed the title To continue to run this bot, please fix the bot source code. Timeout after 15s, 502 Error GATEWAY TIMEOUT Aug 3, 2023
@pablomarin
Copy link
Owner

Most of the time when the bot doesn't work on the front-end app is because the BOT_DIRECTLINE_SECRET_KEY app setting is not set correctly.
If the bot is working well in the Test Web Chat in the Azure portal, and in Teams, then the only other possible cause is not setting correctly BOT_DIRECTLINE_SECRET_KEY in the front-end app settings in the azure portal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants