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

TypeError: Cannot read properties of undefined (reading 'content')

Open IainD925 opened this issue 8 months ago • 10 comments

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Send any messages in Ask or Chat.

Similar question to 814 but not same issue as that issue resulted in patch. Checked code includes patch.

Any log messages given by the failure

2024_06_28_lw1sdlwk00005H_docker.txt

(1) In chat window: "TypeError: Cannot read properties of undefined (reading 'content')"

(2) In Log Stream '200 Not Found':

2024-06-28 16:21:14.425 +00:00 [Information] Microsoft.AspNetCore.Hosting.Diagnostics: Request finished HTTP/1.1 GET http://asbk-espc-gpt-dev-uks-001.azurewebsites.net/auth_setup - - - 200 457 application/json 743.1959ms 2024-06-28 16:21:14.490 +00:00 [Information] Microsoft.AspNetCore.Hosting.Diagnostics: Request starting HTTP/1.1 GET http://asbk-espc-gpt-dev-uks-001.azurewebsites.net/.auth/refresh - - 2024-06-28 16:21:14.491 +00:00 [Trace] Middleware: Request came in on normal port, sending to normal target http://169.254.130.4:8000/.auth/refresh 2024-06-28 16:21:14.491 +00:00 [Trace] Middleware: Forwarding request to http://169.254.130.4:8000/.auth/refresh 2024-06-28 16:21:14.649 +00:00 [Trace] Middleware: Forwarded request finished in 157.987ms 200 Not Found 2024-06-28 16:21:14.657 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel.Connections: Connection id "0HN4NHAS3AMKT" completed keep alive response. 2024-06-28 16:21:14.657 +00:00 [Information] Microsoft.AspNetCore.Hosting.Diagnostics: Request finished HTTP/1.1 GET http://asbk-espc-gpt-dev-uks-001.azurewebsites.net/.auth/refresh - - - 404 207 text/html;+charset=utf-8 166.6094ms 2024-06-28 16:21:14.694 +00:00 [Information] Microsoft.AspNetCore.Hosting.Diagnostics: Request starting HTTP/1.1 GET http://asbk-espc-gpt-dev-uks-001.azurewebsites.net/config - - 2024-06-28 16:21:14.694 +00:00 [Trace] Middleware: Request came in on normal port, sending to normal target http://169.254.130.4:8000/config 2024-06-28 16:21:14.694 +00:00 [Trace] Middleware: Forwarding request to http://169.254.130.4:8000/config 2024-06-28 16:21:14.745 +00:00 [Trace] Middleware: Forwarded request finished in 50.606ms 200 OK 2024-06-28 16:21:14.745 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel.Connections: Connection id "0HN4NHAS3AMKT" completed keep alive response. 2024-06-28 16:21:14.745 +00:00 [Information] Microsoft.AspNetCore.Hosting.Diagnostics: Request finished HTTP/1.1 GET http://asbk-espc-gpt-dev-uks-001.azurewebsites.net/config - - - 200 192 application/json 50.9678ms

Expected/desired behavior

Question submitted via app should return answer/expected response

OS and Version?

Windows Server 2022

azd version?

azd version 1.9.3 (commit e1624330dcc7dde440ecc1eda06aac40e68aa0a3)

Versions

Mention any other details that might be useful

I tried deploying without private endpoints, deleted everything then deployed with PE's. Same issue.


Thanks! We'll be in touch soon.

IainD925 avatar Jun 28 '24 16:06 IainD925