Open cyber-bytezz opened 1 week ago
I am experiencing a JSON parsing error when using the AI SDK. The error message is: SyntaxError: Unexpected token < in JSON at position 0.
SyntaxError: Unexpected token < in JSON at position 0.
The JSON parsing should work correctly without any errors, allowing smooth operation of the SDK functions.
In this environment: [local machine] With this config: [Provide any configuration details relevant to the SDK usage] Run the following code snippet:
fetch('https://api.example.com/endpoint') .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error));
SDK Version Node.js Version
No response
Is there an existing issue for this?
Current Behavior
I am experiencing a JSON parsing error when using the AI SDK. The error message is:
SyntaxError: Unexpected token < in JSON at position 0.
Expected Behavior
The JSON parsing should work correctly without any errors, allowing smooth operation of the SDK functions.
Steps To Reproduce
In this environment: [local machine] With this config: [Provide any configuration details relevant to the SDK usage] Run the following code snippet:
Environment
Anything else?
No response