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

HTTP Error 404 - After a successful "New Azure OpenAI" deployment to Azure using "Deploy to Azure" button #1203

Closed
bsonnek opened this issue May 24, 2023 · 4 comments
Assignees
Labels
docs and tests Improvements or additions to documentation

Comments

@bsonnek
Copy link

bsonnek commented May 24, 2023

I ran the "Deploying with a new Azure OpenAI instance" Azure Portal command from here:
https://github.com/microsoft/semantic-kernel/blob/main/samples/apps/copilot-chat-app/webapi/DeploymentTemplates/README.md

The deployment was successful in the Azure Resource Group deployment templates.

When I test the web app with the https://app-skweb.azurewebsites.net/probe
I receive "Semantic Kernel Service up and running"

But when I try to access the chat web app for the first time I receive an HTTP Error 404 - page can’t be found.
Accessing this link gets 404 - https://app-skweb.azurewebsites.net

I'm running this directly from the main github repo so everything is recent.

Any Idea what I'm missing?

Thanks in advance!

@adrianwyatt
Copy link
Contributor

The templates only deploy backend web api (i.e., CopilotChatWebApi). For the end-to-end experience you'll need to run the frontend web app (i.e., samples\apps\copilot-chat-app\webapp) and configure it to use your instance of the backend webapi. I think the issue here is that we're missing a section in the READMEs on connecting these two.

  1. Get your API key from your deployed instance (https://github.com/microsoft/semantic-kernel/blob/main/samples/apps/copilot-chat-app/webapi/DeploymentTemplates/README.md#authorization)
  2. Follow the instructions to run the frontend web app locally and configure it to use your deployed backend: https://github.com/microsoft/semantic-kernel/blob/main/samples/apps/copilot-chat-app/README.md#start-the-webapp-frontend-application.

We'll take a look at making this process more obvious this week.

@adrianwyatt adrianwyatt self-assigned this May 24, 2023
@adrianwyatt adrianwyatt reopened this May 24, 2023
@adrianwyatt adrianwyatt added docs and tests Improvements or additions to documentation samples labels May 24, 2023
@bsonnek
Copy link
Author

bsonnek commented May 24, 2023

Great! Thank you for the quick response!

@bsonnek bsonnek closed this as completed May 24, 2023
@bsonnek
Copy link
Author

bsonnek commented May 24, 2023

One last question - for modifying the .env file with the backend URI what should it be? The Azure WebAPI server doesn't appear to allow traffic on port 40443 - I've opened ports on the NSG and still cannot get a response.

I've tried different variations of the URI but can't get my webapp to open up. It just sits and spins..

URIs I've tried:
http://app-semkernel-skweb.azurewebsites.net:40443/
https://app-semkernel-skweb.azurewebsites.net:40443/
https://app-semkernel-skweb.azurewebsites.net

@bsonnek bsonnek reopened this May 24, 2023
@bsonnek
Copy link
Author

bsonnek commented May 24, 2023

I figured out what URI to use since port 40443 wasn't used:
REACT_APP_BACKEND_URI=https://app-semkernel-skweb.azurewebsites.net/

Everything is now working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs and tests Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants