-
Notifications
You must be signed in to change notification settings - Fork 279
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
aiohttp.web_exceptions.HTTPNotFound: Not Found #2058
Comments
Hello Team! Also experiencing the issue on my side leveraging botbuilder-integration-aiohttp-4.14.7. |
It seems that this issue might be related to the 'Always On' feature in App Service. When 'Always On' is enabled, the front-end load balancer sends a GET request to the application's root every five minutes. For more details, please refer to: |
Hey everyone! |
@7crabs The only thing the bot responds to is POST's to /api/messages. Anything else should result in a 404 since there isn't handler for it. I tested some random GET's to a Python bot, and it doesn't produce this error. |
Does anyone have information on what the request consisted of? |
@tracyboehrer, I'm curious about whether your tests were conducted with the botbuilder-core version 4.14.8. There was an update between versions 4.14.7 and 4.14.8 that changed how exceptions are handled. Specifically, To further investigate, I modified the 02.echo-bot sample from the BotBuilder-Samples repository by adding
|
@7crabs I'll check that out. |
Versions
botbuilder-core-4.14.7
botbuilder-integration-aiohttp-4.14.7
botbuilder-schema-4.14.7
botframework-connector-4.14.7
botframework-streaming-4.14.7
Describe the bug
When deploying the bot, this error message/warning shows constantly:
/home/LogFiles/2023_12_14_lw1ldlwk00003Y_default_docker.log (https://webapp-backend-botid-munzn7fvelbuy.scm.azurewebsites.net/api/vfs/LogFiles/2023_12_14_lw1ldlwk00003Y_default_docker.log)
2023-12-14T17:41:28.187782798Z raise self._http_exception
2023-12-14T17:41:28.187786398Z aiohttp.web_exceptions.HTTPNotFound: Not Found
2023-12-14T17:46:28.293964145Z Traceback (most recent call last):
2023-12-14T17:46:28.294010945Z File "/tmp/8dbfbfd4367d347/antenv/lib/python3.10/site-packages/botbuilder/core/integration/aiohttp_channel_service_exception_middleware.py", line 20, in aiohttp_error_middleware
2023-12-14T17:46:28.294018945Z response = await handler(request)
2023-12-14T17:46:28.294023045Z File "/tmp/8dbfbfd4367d347/antenv/lib/python3.10/site-packages/aiohttp/web_urldispatcher.py", line 931, in _handle
2023-12-14T17:46:28.294027545Z raise self._http_exception
2023-12-14T17:46:28.294031445Z aiohttp.web_exceptions.HTTPNotFound: Not Found
/home/LogFiles/2023_12_14_lw1ldlwk00003Y_docker.log (https://webapp-backend-botid-munzn7fvelbuy.scm.azurewebsites.net/api/vfs/LogFiles/2023_12_14_lw1ldlwk00003Y_docker.log)
2023-12-14T13:20:56.577Z INFO -
/home/LogFiles/2023_12_14_lw1ldlwk00003Y_easyauth_docker.log (https://webapp-backend-botid-munzn7fvelbuy.scm.azurewebsites.net/api/vfs/LogFiles/2023_12_14_lw1ldlwk00003Y_easyauth_docker.log)
Ending Log Tail of existing logs ---Starting Live Log Stream ---
2023-12-14T17:46:28.293964145Z Traceback (most recent call last):
2023-12-14T17:46:28.294010945Z File "/tmp/8dbfbfd4367d347/antenv/lib/python3.10/site-packages/botbuilder/core/integration/aiohttp_channel_service_exception_middleware.py", line 20, in aiohttp_error_middleware
2023-12-14T17:46:28.294018945Z response = await handler(request)
2023-12-14T17:46:28.294023045Z File "/tmp/8dbfbfd4367d347/antenv/lib/python3.10/site-packages/aiohttp/web_urldispatcher.py", line 931, in _handle
2023-12-14T17:46:28.294027545Z raise self._http_exception
2023-12-14T17:46:28.294031445Z aiohttp.web_exceptions.HTTPNotFound: Not Found
See attachment.
I can confirm that happens to every single customer. that uses this accelerator:
https://github.com/MSUSAzureAccelerators/Azure-Cognitive-Search-Azure-OpenAI-Accelerator/tree/main
this the code for the app.py and bot.py:
https://github.com/MSUSAzureAccelerators/Azure-Cognitive-Search-Azure-OpenAI-Accelerator/blob/main/apps/backend/app.py
https://github.com/MSUSAzureAccelerators/Azure-Cognitive-Search-Azure-OpenAI-Accelerator/blob/main/apps/backend/bot.py
The text was updated successfully, but these errors were encountered: