question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error 400 when using open bot with AppId+Password

See original GitHub issue

Version

4.3.3 on MacOS

Describe the bug

I created an echo bot using the yeoman generator following this doc, but I was unable to test the locally hosted bot in the emulator using the open bot with URL (+ AppID and password) feature. This bug only exists when we add an AppId and Password to the local bot. I got that AppId and Password from a newly created ABS Web App Bot. The workaround to this problem was to create a .bot file with the local endpoint, AppId and Password.

To Reproduce

Steps to reproduce the behavior:

  1. Follow this doc to create a bot locally.
  2. Follow this doc to create Web App bot to gather an appid and password
  3. Deployment is optional
  4. Add AppId and Password to .env of my yeoman generated bot that is hosted locally.
  5. Open the emulator and click on Open Bot
  6. Enter my localhost endpoint, AppId and Password
  7. Say hi or anything to the bot
  8. ends with a 400 directline.postActivity issue

Expected behavior

This should just work out of the box as it does with a local bot without an AppId and Password.

Additional context

The work around to this problem was to create a new bot configuration file, add the endpoint, AppId and password. Save the file and then talk to the bot. This worked fine, but took us a while to figure this out.

[bug]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cwhittencommented, Apr 24, 2019

@stevengum was able to reproduce. we’ll be taking a work item to continue the thread. cc @justinwilaby

1reaction
cwhittencommented, Apr 24, 2019

hi @ovishesh & @brandonh-msft. we will take a look at this. thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Bot Framework Authentication - Bot Service
Learn how to troubleshoot bot authentication errors, such as connectivity issues and problems with app IDs and passwords.
Read more >
Google OAuth 2.0 failing with Error 400: invalid_request for ...
You can let the app developer know that this app doesn't comply with one or more Google validation rules. Request details: The content...
Read more >
How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
The 400 Bad Request error indicates that the server cannot or process the request due to a client error. Read about the common...
Read more >
Troubleshoot connection issues | Slack
If you're having trouble connecting to Slack on the desktop app or in a browser, learn more about connection issues and how to...
Read more >
User Authorization - Telegram APIs
Otherwise, the system will send an authorization code using the following logic: ... RPC error, directly asking the user to enter the 2FA...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found