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

Bot Emulator 3.5.27 not able to connect to bot getting 301 response #180

Closed
kausthub opened this issue May 7, 2017 · 12 comments
Closed

Comments

@kausthub
Copy link

kausthub commented May 7, 2017

So i followed the ChatConnector example for Node Js.
This is the log i see in bot emulator
[20:34:29] -> POST 301 [conversationUpdate]

Please help in solving this issue
This issue is on Windows 7

@eanders-ms
Copy link
Contributor

Are you certain is was 301? I'm wondering if it could have been 401.
If 301:

  • Was your bot running locally or remotely?

If 401:

  • Was your bot configured with MSA appId and password, or running without credentials?

@kausthub
Copy link
Author

kausthub commented May 8, 2017 via email

@eanders-ms
Copy link
Contributor

Could you please copy/paste a few lines from your emulator log showing the error?

@kausthub
Copy link
Author

kausthub commented May 9, 2017 via email

@eanders-ms
Copy link
Contributor

A new version of the emulator is available that may be able to provide more information about the 301. Direct download link: https://github.com/Microsoft/BotFramework-Emulator/releases

@kausthub
Copy link
Author

kausthub commented May 10, 2017 via email

@Stevenic
Copy link

The 301 would have to be coming from something external as there's nothing in the Node SDK that does any sort of redirect. Is it possible that you have a firewall or proxy of some sort running locally? Out of curiosity can you see where it's redirecting you too???

@kausthub
Copy link
Author

kausthub commented May 11, 2017 via email

@eanders-ms
Copy link
Contributor

If the 301 is clickable in the emulator log, clicking it will show the content of the response in the detail view. If the 301 is not hyperlinked, then you'll need to inspect the network traffic using a network debugging tool like fiddler. If you use fiddler, be sure to set your machine's proxy settings to not bypass proxy for local addresses, otherwise you won't see localhost traffic in the fiddler capture.

@kausthub
Copy link
Author

kausthub commented May 11, 2017 via email

@eanders-ms
Copy link
Contributor

Try using fiddler (as described above) to look at the Location header of the 301 response. This header contains the redirect URL.

@eanders-ms
Copy link
Contributor

Going ahead and closing this now. If you'd like further assistance, reply here and we'll reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants