Closed TejasQ closed 2 years ago
Nevermind, I'll investigate further and reopen this. Error may be in my code.
So it actually inserts data, but it fails somewhere later with this JSON error "Unexpected end of JSON input".
This also happens with other internal requests in the client randomly:
@TejasQ Can you coordinate with @xataio/backenders to try to find traces of those requests? Seems like a backend bug to me.
I didn't like the gitBranch=undefined from his screenshot. Opening a PR to fix that.
Closing this issue as it's from the backend.
We have added the requestId
to the error message in the SDK so that we can trace them back to datadog and get more information.
I'm experiencing an error from the client and I'm not sure why. 🧐 It worked the first time when bulk importing, but subsequent requests error.
Error
Code
Screenshot
Usages
https://github.com/xataio/aita-to-xata/blob/bb5d16ad0c697065ad7f9151439439dceadb4bde/pages/api/getPosts.ts#L16
https://github.com/xataio/aita-to-xata/blob/bb5d16ad0c697065ad7f9151439439dceadb4bde/pages/api/getComments.ts#L27