Open tabee opened 5 months ago
@K-Schubert Any idea why the question autocomplete is not working? do we need auto-complete endpoint in [chatgpt-minimal] .env ?
when i write a text in the GUI it does the api calls so far. except i dont see the suggestions in the GUI.
INFO: 172.19.0.1:55916 - "GET /search/?question=b HTTP/1.1" 200 OK
INFO: 172.19.0.1:55930 - "GET /search/?question=be HTTP/1.1" 200 OK
INFO: 172.19.0.1:55934 - "GET /search/?question=bei HTTP/1.1" 200 OK
INFO: 172.19.0.1:55936 - "GET /search/?question=beit HTTP/1.1" 200 OK
INFO: 172.19.0.1:55948 - "GET /search/?question=beitr HTTP/1.1" 200 OK
INFO: 172.19.0.1:55962 - "GET /search/?question=beitr%C3%A4 HTTP/1.1" 200 OK
INFO: 172.19.0.1:55974 - "GET /search/?question=beitr%C3%A4g HTTP/1.1" 200 OK
If there is no exact match, the 500 may be the wrong code to use. 404 would be nice.
INFO: 172.19.0.1:51350 - "GET /search/?question=xxxxxxxxx HTTP/1.1" 500 Internal Server Error
INFO: 172.19.0.1:51350 - "GET /search/?question=xxxxxxxx HTTP/1.1" 500 Internal Server Error
INFO: 172.19.0.1:51350 - "GET /search/?question=xxxxxxx HTTP/1.1" 500 Internal Server Error
INFO: 172.19.0.1:51350 - "GET /search/?question=xxxxxx HTTP/1.1" 500 Internal Server Error
INFO: 172.19.0.1:51350 - "GET /search/?question=xxxxx HTTP/1.1" 500 Internal Server Error
still not sure this is right 🫠... what you think @K-Schubert ?
# frontend
chatgpt-minimal:
build:
context: https://github.com/CdC-SI/chatgpt-minimal.git#query-autocomplete
image: chatgpt-minimal
Fix error when deploying demo on Github Codespace. The frontend API calls to the /search endpoint for autocomplete are being blocked.
Error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8000/search/?question=w. (Reason: CORS request did not succeed). Status code: (null)."
See https://github.com/orgs/community/discussions/15351 for more details of fix.
Also: env var REACT_APP_QUERY_AUTOCOMPLETE_API_URL not being passed to docker image during build from docker-compose.yml.