azure-search-openai-javascript icon indicating copy to clipboard operation
azure-search-openai-javascript copied to clipboard

Index isn't created so api returns 500 so chat front end says 'Sorry, we are having some problems. Please try again later.'

Open diberry opened this issue 1 year ago • 6 comments

In Codespaces

  1. azd auth login
  2. azd up
image image image

Deployment succeeded

image

@anfibiacreativa @sinedied @achandmsft

diberry avatar May 10 '24 20:05 diberry

Seems like the postup script did not run successfully. Could you try running azd hooks run postup to see you have additional debug messages/errors we could use?

EDIT: Additionally, do you have any errors in the indexer container app log stream? Thank you

sinedied avatar May 13 '24 07:05 sinedied

@LianwMS @yungezz This sample is actually ready for testing. MI is already implemented and please see comment from @sinedied above regarding this issue.

anfibiacreativa avatar May 14 '24 07:05 anfibiacreativa

@diberry could you please retry following the steps above and see what results you're getting now? Thank you!

anfibiacreativa avatar May 14 '24 07:05 anfibiacreativa

I was running into the same issue and when I ran the [azd hooks run postup] this was the response { Running postup command hook for project

(✓) Done: Running postup command hook for project (!) Warning: Running postup service hook for indexer (No hook found) (!) Warning: Running postup service hook for search (No hook found) (!) Warning: Running postup service hook for webapp (No hook found)

SUCCESS: Your hooks have been run successfully }

image

Armstrong-Kim avatar May 16 '24 13:05 Armstrong-Kim

Thanks for the details. I deployed a fresh environment from Codespaces and cannot reproduce the issue, I think it might be related to the environment.

Could you share more information about your current environment to help pinpoint the issue?

  • OS / Version:
  • Powershell version (if Windows) (open powershell and run $PSVersionTable):
  • Are you using WSL? If yes, which distribution are you using? (lsb_release -a):
  • Node.js version (node -v):
  • NPM version (npm -v):

sinedied avatar May 17 '24 09:05 sinedied

OS / Version: Windows 10 Pro PSVersion 5.1.19041.4412 Description: Ubuntu 22.04.3 LTS node -v v19.6.0 npm -v 9.6.6

Armstrong-Kim avatar May 17 '24 13:05 Armstrong-Kim

@Armstrong-Kim thank you.

Could you try updating Powershell to the latest version (v7+)?

Powershell 5 seems to have an issue with some of the scripts we use in the demo.

sinedied avatar May 21 '24 09:05 sinedied

I had the same issue as @diberry (thanks for the screenshots!).

The issue was resolved by (re?)running azd hooks run postup as instructed. Many thanks!

azure-search-openai-javascript ff72fa5 OS / Version: Mac OS (Sonoma 14.2.1) Docker Desktop: 4.27.1 (136059) azd version 1.9.3 node -v v21.6.1 npm -v 10.2.4

dbastin avatar Jun 03 '24 18:06 dbastin

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[bot] avatar Aug 03 '24 01:08 github-actions[bot]

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

github-actions[bot] avatar Aug 10 '24 01:08 github-actions[bot]