Closed Tobe2d closed 1 month ago
Use http://localhost:3001/api/search
. You don't need to use host.docker.internal since you're sending request from the host.
Thanks for the reply,
Changing it to http://localhost:3001/api/search
still give me this result:
You need to send a post request, its an API not a GUI.
Yes when I try to make call I egt this:
An Error occured: HTTPConnectionPool(host='localhost', port=3001): Max retries exceeded with url: /api/search (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff0fa55ee10>: Failed to establish a new connection: [Errno 111] Connection refused'))
When I try to open the backend on http://localhost:3001/ I get white page with small text "Cannot GET /"
Therefore when I try to use the API I am getting error:
An Error occured: 400 Client Error: Bad Request for url: http://host.docker.internal:3001/api/search
the log for the backend in docker looks good:
However, Perplexica is working fine as frontend when I use it on port 3000
what am I missing?