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

Unable to fetch interactive avatar speech token #32

Open
yuting1008 opened this issue Sep 24, 2024 · 6 comments
Open

Unable to fetch interactive avatar speech token #32

yuting1008 opened this issue Sep 24, 2024 · 6 comments

Comments

@yuting1008
Copy link

I am reproducing interactive avatar.
After I deployed it on the Azure Static Web App and click login, the following error message occurred.
FYR, the local.settings.json has already been uploaded and the environment variables are correct.

螢幕擷取畫面 2024-09-24 150607

@corticalstack
Copy link

Same here, 404 on get-speech-token after deploying static web app.

@corticalstack
Copy link

@yuting1008 I noticed there is no azure function as defined by repo artefact function_app.py that is deployed into my resource group. Unfmailiar with azure static web apps, I don't know whether my environment setup meant the function was not deployed when I deployed the static web app, or there's a missing step in the setup guide. Do you see this function deployed?

@corticalstack
Copy link

@yuting1008 fyi I managed to move beyond the /api 404 issue. I noticed that the api function_app.py had dependencies likes openai. However, in the repo requirements.txt, it only has:

azure-functions
azurefunctions-extensions-http-fastapi

I added:

azure-functions
openai
fastapi
aiohttp
pyodbc
requests
beautifulsoup4

and now the api route, for example get-speech-token, can be consumed. This is confirmed when testing locally with:

swa start src --api-location api --verbose

Unfortunately I've hit a next issue with get-speech-token with a 500 internal server error (have double-checked region and access key).

@yuting1008
Copy link
Author

Hi @corticalstack , thank you for reply! However, I still cannot get speech token after updating requirements.txt.

@corticalstack
Copy link

@yuting1008 I believe MSFT are working on fixing an issue introduced by the latest commit. This is hoped to be pushed sometime next week.

In the meantime, I also understand that the version 2 commits back works. However, I think this is without the bing function tool.

@harmke
Copy link
Contributor

harmke commented Dec 2, 2024

Hi @yuting1008 , could you verify if running the solution locally works for you? If not, could you confirm that all the secrets from the readme are correctly filled in? There was an issue some time ago where the list of variables in the readme was not complete, so checking this might help.

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