Unexpected end of JSON input #1980
Unanswered
samuelpucat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I have a similar problem to issue #1933, I'm calling non-returning API defined like this.
generated schema.d.ts:
calling api:
throws error:
which is in this part of library:
Calling the API with
parseAs: 'text'
, solves the error but I don't know whether it is the correct solution.I feel like this should have been caught by this part of code:
but this API doesn't have Content-Length response header nor have 204 status
Question
Like I said, I would like to ask for advice, what would be the best approach:
parseAs: 'text'
flagBeta Was this translation helpful? Give feedback.
All reactions