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

Localization Change Causes Publishing Problem (also not working on Emulator) #8673

Closed
humak opened this issue Sep 17, 2021 · 8 comments
Closed
Assignees
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. Type: Bug Something isn't working

Comments

@humak
Copy link

humak commented Sep 17, 2021

Describe the bug

My bot is working properly on the composer web chat whether the default language is English or Turkish. But on Emulator, it is only working properly when the default language is English. When I change the language to Turkish, it is not working on the Emulator.

It also causes problems in the Publishing phase, if the bot is not working on the Emulator, it is not working after publishing too.

Version

Version: 2.1.0-nightly.266986.c355633
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0
(experienced the same issue on the stable version too)

Emulator: 4.13.0

Browser

  • Edge

OS

  • Windows

To Reproduce

Steps to reproduce the behavior:

  1. Change your localization settings, make Turkish default language
  2. Try on webchat, it will work properly
  3. Try on Emulator, it will possibly fail (no answers)
  4. Try to publish, if it is successfully published, try from Azure Portal, it will not work properly (no answers)

Screenshots

  1. When localization is English: it works on emulator

image

  1. Turkish case: it works on webchat but not on Emulator

image

Additional context

We spend so much time trying to understand why it fails after publishing and not responds, thats how we discovered that, when it stays on English as default, it works after publishing too, and emulator of course.

@humak humak added Needs-triage A new issue that require triage Type: Bug Something isn't working labels Sep 17, 2021
@humak humak changed the title Localization Change Casuses Publishing Problem (also not working on Emulator) Localization Change Causes Publishing Problem (also not working on Emulator) Sep 17, 2021
@dmvtech dmvtech added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Required for internal Azure reporting. Do not delete. labels Sep 17, 2021
@dmvtech dmvtech self-assigned this Sep 17, 2021
@srinaath
Copy link
Contributor

Screen Shot 2021-09-17 at 11 04 25 AM

@humak This is an emulator setting that needs to be changed to the locale that you want the bot to respond to. The current locale set on Composer does not get set on Emulator when we use the operation "Open in Emulator" from Composer.

@srinaath srinaath removed the Needs-triage A new issue that require triage label Sep 17, 2021
@dmvtech dmvtech added the customer-replied-to Required for internal reporting. Do not delete. label Sep 17, 2021
@humak
Copy link
Author

humak commented Sep 20, 2021

We tried your solution and it worked on Emulator. Thank you so much @srinaath !

We still couldn't reach the published bot from Azure Portal WebApp Chat.
Do you have any suggestion about how we can add this language parameter during/after publishing bot to Azure WebApp? Since these problems are connected and similar, I think we are also missing some point during publishing phase.

@dmvtech
Copy link
Collaborator

dmvtech commented Sep 20, 2021

We still couldn't reach the published bot from Azure Portal WebApp Chat.
Do you have any suggestion about how we can add this language parameter during/after publishing bot to Azure WebApp? Since these problems are connected and similar, I think we are also missing some point during publishing phase.

Hi @humak Are you referring to Test in WebChat or full WebChat?

The locale of the browser should be the thing that is telling WebChat and the bot what locale should be used. For example, in Emulator, you can see what locale is being sent:

{
  "type": "conversationUpdate",
  "membersAdded": [
    {
      "id": "______________________________",
      "name": "Bot"
    },
    {
      "id": "______________________________",
      "name": "User"
    }
  ],
  "from": {
    "id": "______________________________",
    "name": "User",
    "role": "user"
  },
  "locale": "de-de",
  "serviceUrl": "http://localhost:64085"
}

Are you able to test with a browser using both English and Turkish locales?

@dmvtech
Copy link
Collaborator

dmvtech commented Sep 20, 2021

Related: microsoft/BotFramework-Emulator#2268

@humak
Copy link
Author

humak commented Sep 22, 2021

Hi @dmvtech , maybe I can explain better with this example.

  1. I have a bot build in Bot Composer , the localization is Turkish. It works in local webchat.
    image

  2. It works in the Emulator when we changed the locale as you suggested:
    image

  3. Then we publish bot to Azure. And In the Azure Bot APP Test Webchat , the bot is not running.
    image

We got this error when we publish the bot to Azure as locale tr-TR (Turkish.)
image

When the bot’s locale is en-us (english), it works.
The question is : Should we add a property to publishing profile when we are publishing in Turkish? We can send you the publishing profile as json.

@dmvtech
Copy link
Collaborator

dmvtech commented Sep 22, 2021

@humak

When you publish, it will publish all locales that you have created/configured. Just to confirm; you did not remove en-US locale from the bot, correct?.

So, my assumption is that there is something wrong with the published bot, regardless of locale. The Test in WebChat and Azure portal are obviously running in English (I'm assuming en-US).

One thing you can do is use Ngrok and test your local running bot through the Test in WebChat tool. This will confirm that everything but the bot running in Azure (App Service) is working correctly.

Otherwise:

  • Have you tried re-publishing?
  • Gateway timeout usually means the bot was running long. Does it do anything at the beginning (of the conversation start), that might take a long time (API call, etc)?

@dmvtech
Copy link
Collaborator

dmvtech commented Sep 29, 2021

Hi @humak. Have you tried any of the above? Any answers to the questions above?

@dmvtech
Copy link
Collaborator

dmvtech commented Oct 1, 2021

Closing due to lack of response. Please comment with answers to above questions if you still need assistance.

@dmvtech dmvtech closed this as completed Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants