transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
https://agentic.so
MIT License
16.22k stars 2.12k forks source link

Unexpected token < in JSON at position 0 #562

Closed ElenaChes closed 3 months ago

ElenaChes commented 1 year ago

Verify latest release

Verify webapp is working

Environment details

node v18.15.0 firefox 112.0.2 windows 10

Describe the Bug

I'm using the UnofficialProxyAPI and been having the bug mentioned in issues #526 / #557, Updated to 5.2.4 since it's supposed to fix it but now I'm getting a new error:

<!--[if IE 9]>
^

SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:6498:19)
    at successSteps (node:internal/deps/undici/undici:6472:27)
    at node:internal/deps/undici/undici:1145:60
    at node:internal/process/task_queues:140:7
    at AsyncResource.runInAsyncScope (node:async_hooks:204:9)
    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)