question

nitinsharma-0218 avatar image
0 Votes"
nitinsharma-0218 asked nitinsharma-0218 commented

python echo bot is working on local but not working on azure portal.

python echo bot is working on local but not working on azure portal. It is not responding in 'Test in Web Chat' box.

Also after clicking on bot message endpoint its showing - Application Error (screenshots attached)

please help.
103857-screenshot-from-2021-06-09-18-50-53.png103838-screenshot-from-2021-06-09-18-51-00.png103903-screenshot-from-2021-06-09-18-51-13.png


azure-bot-service
· 4
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.

Can you try to connect to your bot using the bot emulator? Also, here are some troubleshooting steps to consider.


0 Votes 0 ·

Sorry i did not get you. I am able to connect my bot to emulator locally.Everything is working fine locally

But after deployment of bot (the only thing i have changed is app id and password in config file before deployment) its not working. Its not replying in 'Test in web chat' box.

I tried this deployed bot to connect with my bot emulator locally with ngrok. Its not working and responding with HTTP 503 Error.

Here is my config.py file

import os

class DefaultConfig:
""" Bot Configuration """

 PORT = 3978
 APP_ID = '6faeba63-xxxxx--xxxxx-xxxxx-51cd21174261' #bot app id
 APP_PASSWORD = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' #bot password
 QNA_KNOWLEDGEBASE_ID = 'c12edxxxxxxx1887b67c1876' #qna credentials
 QNA_ENDPOINT_KEY = '8de3caxxxx68f3dc6f6fb8'
 QNA_ENDPOINT_HOST = 'https://xxxx.azurewebsites.net/qnamaker'
0 Votes 0 ·

Glad it's fixed. Feel free to share your fix so others can benefit from it, thanks!

0 Votes 0 ·

1 Answer

nitinsharma-0218 avatar image
1 Vote"
nitinsharma-0218 answered

Yes i was executing zip command incorrectly.

/my_bot: zip -r my_bot.zip ./my_bot #wrong. this command i was executing from outside of my bot dir.



/my_bot: zip -r my_bot.zip . #correct . Executing inside of bot directory.



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.