Typesense API 404
-
Hi
I get a 404 error from TypeSense server API.
https://example.com/cms-search:443/collections/stock/documents/search?q=test&query_by=post_title&per_page=5&x-typesense-api-key=REDACTED
The problem looks like the:443
which is in the wrong place.My TypeSense server is behind a reverse proxy on
https://example.com/cms-search
I had to modify the following code to make it work.
BACKEND
includes/Main/TypesenseAPI.php
Search for:
( $settings['protocol'] . $settings['node'] . ':' . $settings['port'] . '/' ?? '' )
Replace with( $settings['protocol'] . $settings['node'] . '/' ?? '' );
FRONTEND assets/frontend/autocomplete.jsSearch for
.concat(e.host,":").concat(e.port)
Replace with.concat(e.host)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Typesense API 404’ is closed to new replies.