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

Looking for your backend #523

Closed
howard2019007 opened this issue Oct 19, 2023 · 8 comments
Closed

Looking for your backend #523

howard2019007 opened this issue Oct 19, 2023 · 8 comments
Assignees

Comments

@howard2019007
Copy link

Once deployed to Azure, it cannot be used
./deploy-webapi.ps1 -Subscription {YOUR_SUBSCRIPTION_ID} -ResourceGroupName {YOUR_RESOURCE_GROUP_NAME} -DeploymentName {YOUR_DEPLOYMENT_NAME}
image

@glahaye
Copy link
Collaborator

glahaye commented Oct 19, 2023

It's suspicious that it's looking for the backend at https://localhost:40443/...

Do you have a ..\webapp.env file on your machine? If so, make sure that there are NO DEFINITION of REACT_APP_BACKEND_URI in it. Otherwise, you might end up with the problem you are describing.

Let me know whether this addresses your issue.

@glahaye glahaye self-assigned this Oct 19, 2023
@glahaye
Copy link
Collaborator

glahaye commented Oct 20, 2023

PR #524 changes things so that even if you do set REACT_APP_BACKEND_URI, deploying to Azure will work fine.

@howard2019007
Copy link
Author

image
There will still be an error

@glahaye
Copy link
Collaborator

glahaye commented Oct 20, 2023

I can't reproduce the problem on my side...

Let me verify the steps you took to get to this problem.

First, did you get the latest commits from the repo? Make sure you have the "Make deploy-webapi do all it needs to by default (#524)" change on your computer.

Than, did you run package-webapi.ps1 again?

@howard2019007
Copy link
Author

My steps: 1. Download the latest GitHub library, then import Azure OpenAI and AAD authentication ID, the local execution is running normally. 2. Use the package-webapi.ps1 packager and encounter the above problems after performing deployment to Azure

@crickman
Copy link
Contributor

Can you check if you've hit the maximum number of indexes? Migration won't be able to proceed unless there is room to create two new indexes.

@howard2019007
Copy link
Author

#523 (comment)
I've fixed the error, but a new problem has arrived, and there is still no way to log in, enter the username and password and stay in the looking for the backend
image

image
image

@howard2019007
Copy link
Author

我无法在我这边重现问题...

让我验证一下您为解决此问题而采取的步骤。

首先,您是否从存储库中获得了最新的提交?确保计算机上有“默认情况下使 deploy-webapi 执行其需要的所有操作 (#524)”更改。

比,你又运行了package-webapi.ps1吗?

This issue has been resolved, thanks

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

No branches or pull requests

3 participants