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

Co-pilot chat sample app fails to invoke createChat call #656

Closed
ADegitz opened this issue Apr 25, 2023 · 2 comments
Closed

Co-pilot chat sample app fails to invoke createChat call #656

ADegitz opened this issue Apr 25, 2023 · 2 comments
Assignees

Comments

@ADegitz
Copy link

ADegitz commented Apr 25, 2023

Describe the bug
When the webapp is launched and I log in with my Microsoft account, the createChat call returns a 400 error saying that the "ask" field is required. This is after a clean install and using an OpenAI account. The webpage then displays an error because no data has been returned. As you see in the second screenshot (webapi log), the last call fails with a 400 error when localhost:3000 is refreshed.

To Reproduce
Steps to reproduce the behavior:

  1. Start the webapi server and ensure that it has started successfully by navigating to https://localhost:40443/probe
  2. Start the webapp
  3. Click on "sign in with Microsoft"
  4. Enter your credentials and click sign in

Expected behavior
I'd expect to see the home page of the chat app.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Windows 10
  • IDE: Visual Studio 2022

Additional context
Add any other context about the problem here.

@evchaki
Copy link
Contributor

evchaki commented Apr 27, 2023

@ADegitz - can you check your AppID is setup correctly in .env file. It looks like it is hitting the service, but the auth is failing. The readme has additional details that might help unblock you.

@craigomatic
Copy link
Contributor

Checking back in on this - @ADegitz if you have a moment would you mind letting us know if you're still blocked here?

There have been many changes to the copilot chat sample, so I would suggest pulling the latest version before trying again.

@ADegitz ADegitz closed this as completed May 15, 2023
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

4 participants