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

Fail to run command npm start --workspace=webapp when using a different backend #214

Closed
jianingwang123 opened this issue Aug 7, 2024 · 9 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@jianingwang123
Copy link

Describe the issue:
When using a different backend according to the README , run command npm start --workspace=webapp , the error is as follows:
image

Repro Steps:

  1. Deploy this repository
  2. Open the alternative backend repository your want to use, for example: https://github.com/Azure-Samples/azure-search-openai-demo
  3. Set the frontend URL as an allowed origin with azd env set ALLOWED_ORIGIN http://localhost:5173
  4. Follow the steps to deploy the Python backend.
  5. Once the Python backend is fully deployed, get the backend URL with azd env get-values | grep BACKEND_URI
  6. Set the backend URL in this repo, running azd env set BACKEND_URI <your_backend_url>
  7. Run export BACKEND_URI=<your_backend_url>
  8. Run npm start --workspace=webapp

Environment:

  • Azd version: azd version 1.9.5 (commit cd2b7af9995d358aab33c782614f801ac1997dde)
  • OS: Dev Containers ,Windows and Codespaces.

Expected behavior:
Run command npm start --workspace=webapp successfully.

@jongio and @sinedied for notification.

@sinedied
Copy link
Contributor

sinedied commented Aug 7, 2024

Seems like the docs need to be updated.

Try npm run dev --workspace=webapp instead

@jianingwang123
Copy link
Author

@sinedied After using the command npm run dev --workspace=webapp instead, the current issue no longer recurs, but when chatting on the frontend page, the following error occurs:
image
image

@sinedied
Copy link
Contributor

For the second issue, the python backend has migrated to the latest AI Chat protocol using different endpoints, so it's currently not compatible. I'll create a separate issue for this.

@sinedied sinedied added bug Something isn't working documentation Improvements or additions to documentation labels Aug 23, 2024
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.

@github-actions github-actions bot added the Stale label Oct 23, 2024
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
@jianingwang123
Copy link
Author

@sinedied This issue doesn't seem to be fixed, could you please reopen it?

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.

@github-actions github-actions bot added the Stale label Dec 31, 2024
@jianingwang123
Copy link
Author

This issue seems to be unresolved, and this comment is to prevent the issue from being closed.

@github-actions github-actions bot removed the Stale label Jan 1, 2025
@sinedied
Copy link
Contributor

@jianingwang123 The issue here is due to the divergence in protocol used in the Python sample, I created #216 to track this so I'll close this one to avoid having duplicate issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants