question

VladislavTagovich-5515 avatar image
0 Votes"
VladislavTagovich-5515 asked GiftA-MSFT edited

Azure web app bot launch problem

When I try to run a web bot application, it loads until the page chrashes with HTTP ERROR 500. I can't find the actual reason because when I check KUDU logs it doesn't have any usefull information. Like that:
11427-lgo1.png
I have some kind of error logger with my web.config, I wrote one line:<httpErrors errorMode="Detail" ExistingResponse="PassThrough"></ httpErrors>, to check for errors, but this time the errors are not displayed.
If I try to browse my app while its loading or when i'm getting an error, it shows another error but I guess it doesn't matter
11602-log2.png
Can you help me to know how to log actual errors or help me to get the reason of that.

azure-webappsazure-bot-service
lgo1.png (28.3 KiB)
log2.png (49.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

GiftA-MSFT avatar image
0 Votes"
GiftA-MSFT answered GiftA-MSFT edited

Hi, thanks for reaching out..can you try following the guidelines provided for troubleshooting HTTP 500 errors? Let me know if the guidelines helped or if you have any further questions or concerns. Thanks.


· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

And i use wsgi for my deployment i have Python FastCGI handler in my web.config, so i have an appSettings variable WSGI_ALT_VIRTUALENV_HANDLE that uses app.wsgi_app and this function returning bottle.default_app() . Maybe I have to change this to aiohttp.web app? But I already have web.run_app(APP, host=HOST, port=PORT) at the end of my app.py. Can I show my git project if you want?

There it is
https://github.com/tag23/bottle-bot-test-1

1 Vote 1 ·
GiftA-MSFT avatar image GiftA-MSFT VladislavTagovich-5515 ·

Hi, following up. I tried running your code and I observed the same error. What I did to resolve the issue was to change the port number because it was probably being used by another process. Please try to enter a different port number in the config.py file. Here is a screenshot of the output obtained from the Bot Emulator.

11743-qna.png


0 Votes 0 ·
qna.png (4.1 KiB)

Sorry I baffled you for this message about problem with identify, but its such a stub. I can launch it in emulator and you saw it with your own, but when i deploy it to azure I'm getting some weird situations with ethernal loading with 500 ERROR and everything i have showed before.

0 Votes 0 ·
Show more comments

Thanks, but this tutorial about Application Insights on ASP.NET or NodeJS, but I'm using python and there no configuration for it

0 Votes 0 ·