ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
16.74k stars 1.57k forks source link

Direct search via URL (?q=<term>) seems broken #235

Closed ProjectMoon closed 1 week ago

ProjectMoon commented 5 months ago

Describe the bug Searching directly via a URL (e.g. https://perplexica.example.com/?q=search term) seems broken in the latest release. It loads the page with the term as the title, but no search seems to be performed, and no output is generated.

To Reproduce Steps to reproduce the behavior:

  1. Go to URL of Perplexica server with ?q= appended to the query string.

Expected behavior Results to load as normal.

ItzCrazyKns commented 5 months ago

Tried reproducing but couldn't see any issues, can you provide more context

rick-github commented 4 months ago

Also https://github.com/ItzCrazyKns/Perplexica/issues/199

ProjectMoon commented 4 months ago

Bit more info based on browser console:

  1. The page loads, and the websocket connection is established.
  2. This JSON gets sent up: {"type":"message","message":{"chatId":"2882b84d8632c0e40a7e1083f130817728d807a4","content":"testing"},"focusMode":"webSearch","history":[["human","testing"]]} (for /?q=testing).
  3. But nothing ever comes back.
  4. WebSocket connection eventually dies (this may be more an issue with my reverse proxy rather than Perplexica itself).

Default logging configuration of the Docker images doesn't show any messages printed out, so I am unsure of what's going on on the server.

ItzCrazyKns commented 1 week ago

This issue has been fixed in a recent update