gptscript-ai / desktop

MIT License
22 stars 13 forks source link

KnowledgeTool call fails with `status code: 502, message: invalid character '<' looking for beginning of value` #503

Open sangee2004 opened 2 months ago

sangee2004 commented 2 months ago

Electron build - 8809ed131d32dc

Steps to reproduce the problem:

  1. Chat with Tildy
  2. Added Travel plan pdf as Thread knowledge.
  3. Ask about day 6 travel plan.
  4. Got a response as expected.
  5. Asked about day 8 travel plan and provide citations.

I was stuck in Calling tool KnowledgeRetreival state for a very long time like many minutes

Screenshot 2024-09-11 at 3 54 08 PM

After this I got a response back.

But from Stack trace , i can see the that tool call to KnowledgeRetreival failed with these errors:

ERROR: got (exit status 1) while running tool, OUTPUT: 2024/09/11 15:50:17 INFO Retrieving sources for query query="{\"query\":\"Day 8 travel plan\"}" datasets="[od3kep 0]" 2024/09/11 15:56:51 failed to modify queries [{"query":"Day 8 travel plan"}] with QueryModifier "enhance": All attempts fail: #1: error, status code: 502, message: invalid character '<' looking for beginning of value
Screenshot 2024-09-11 at 4 08 55 PM Screenshot 2024-09-11 at 4 08 11 PM
sangee2004 commented 2 months ago

There was another time when this same query succeeded after a very long time. This time stack trace shows first attempt of KnowledgeRetreival tool call fail and the 2nd attempt succeed

Screenshot 2024-09-11 at 5 07 05 PM