Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion search stays "on wait" forever. And edit & run prompt again is not an available option #372

Open
papiche opened this issue Sep 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@papiche
Copy link

papiche commented Sep 25, 2024

Describe the bug
After some few prompts, the last one stays "on wait" forever
perplexica_stuck

It must be related to a timeout or kind of prompt unchaining .

To bypass this,
I wonder if each sequences could have an "edit" button and be able to replay a sequence ?

Then this bug "no resolution" creates a feature

@papiche papiche added the bug Something isn't working label Sep 25, 2024
@susanin-ivan
Copy link

susanin-ivan commented Nov 10, 2024

From my observations:

Fifth time click on suggestion will cause this (always) - in the backend logs (with debug enabled) I can see it trying to get searxng with empty query:

perplexica-perplexica-backend-1 | Sun, 10 Nov 2024 16:03:13 GMT express:router trim prefix (/api) from url /api/suggestions
perplexica-perplexica-backend-1 | Sun, 10 Nov 2024 16:03:13 GMT express:router router /api : /api/suggestions
perplexica-perplexica-backend-1 | Sun, 10 Nov 2024 16:03:13 GMT express:router dispatching POST /suggestions
perplexica-perplexica-backend-1 | Sun, 10 Nov 2024 16:03:13 GMT express:router trim prefix (/suggestions) from url /suggestions
perplexica-perplexica-backend-1 | Sun, 10 Nov 2024 16:03:13 GMT express:router router /suggestions : /api/suggestions
perplexica-perplexica-backend-1 | Sun, 10 Nov 2024 16:03:13 GMT express:router dispatching POST /
perplexica-perplexica-backend-1 | Sun, 10 Nov 2024 16:03:20 GMT follow-redirects options {
perplexica-perplexica-backend-1 | maxRedirects: 21,
perplexica-perplexica-backend-1 | maxBodyLength: Infinity,
perplexica-perplexica-backend-1 | protocol: 'https:',
perplexica-perplexica-backend-1 | path: '/search?format=json&q=&language=en',
perplexica-perplexica-backend-1 | method: 'GET',
perplexica-perplexica-backend-1 | headers: [Object: null prototype] {
perplexica-perplexica-backend-1 | Accept: 'application/json, text/plain, /',
perplexica-perplexica-backend-1 | 'User-Agent': 'axios/1.6.8',
perplexica-perplexica-backend-1 | 'Accept-Encoding': 'gzip, compress, deflate, br'
perplexica-perplexica-backend-1 | },
perplexica-perplexica-backend-1 | agents: { http: undefined, https: undefined },
perplexica-perplexica-backend-1 | auth: undefined,
perplexica-perplexica-backend-1 | family: undefined,
perplexica-perplexica-backend-1 | beforeRedirect: [Function: dispatchBeforeRedirect],
perplexica-perplexica-backend-1 | beforeRedirects: { proxy: [Function: beforeRedirect] },
perplexica-perplexica-backend-1 | hostname: 'xxx',
perplexica-perplexica-backend-1 | port: '',
perplexica-perplexica-backend-1 | agent: undefined,
perplexica-perplexica-backend-1 | nativeProtocols: {
perplexica-perplexica-backend-1 | 'http:': {
perplexica-perplexica-backend-1 | _connectionListener: [Function: connectionListener],
perplexica-perplexica-backend-1 | METHODS: [Array],
perplexica-perplexica-backend-1 | STATUS_CODES: [Object],
perplexica-perplexica-backend-1 | Agent: [Function],
perplexica-perplexica-backend-1 | ClientRequest: [Function: ClientRequest],
perplexica-perplexica-backend-1 | IncomingMessage: [Function: IncomingMessage],
perplexica-perplexica-backend-1 | OutgoingMessage: [Function: OutgoingMessage],
perplexica-perplexica-backend-1 | Server: [Function: Server],
perplexica-perplexica-backend-1 | ServerResponse: [Function: ServerResponse],
perplexica-perplexica-backend-1 | createServer: [Function: createServer],
perplexica-perplexica-backend-1 | validateHeaderName: [Function: _node_internal],
perplexica-perplexica-backend-1 | validateHeaderValue: [Function: _node_internal],
perplexica-perplexica-backend-1 | get: [Function: get],
perplexica-perplexica-backend-1 | request: [Function: request],
perplexica-perplexica-backend-1 | setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
perplexica-perplexica-backend-1 | maxHeaderSize: [Getter],
perplexica-perplexica-backend-1 | globalAgent: [Getter/Setter]
perplexica-perplexica-backend-1 | },
perplexica-perplexica-backend-1 | 'https:': {
perplexica-perplexica-backend-1 | Agent: [Function: Agent],
perplexica-perplexica-backend-1 | globalAgent: [Agent],
perplexica-perplexica-backend-1 | Server: [Function: Server],
perplexica-perplexica-backend-1 | createServer: [Function: createServer],
perplexica-perplexica-backend-1 | get: [Function: get],
perplexica-perplexica-backend-1 | request: [Function: request]
perplexica-perplexica-backend-1 | }
perplexica-perplexica-backend-1 | }
perplexica-perplexica-backend-1 | }

Then this error is logged:

perplexica-perplexica-backend-1 | error: Unhandled Rejection at: [object Promise], reason: AxiosError: Request failed with status code 400

perplexica-perplexica-backend-1 | winston:file: written true false
perplexica-perplexica-backend-1 | winston:file: logged 2171 {"level":"error","message":"Unhandled Rejection at: [object Promise], reason: AxiosError: Request failed with status code 400","timestamp":"2024-11-10T16:03:20.835Z"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants