You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library seems to be abandoned, but I post this in case others stumble upon the same problem (ended up using raw fetch instead of apicase for this):
If I invoke an endpoint that returns an Image / ReadableStream, I will get a JSON.stringify error unless I specify a parser other than "json" in the payload. The param should be a String, according to the docs:
This library seems to be abandoned, but I post this in case others stumble upon the same problem (ended up using raw fetch instead of apicase for this):
If I invoke an endpoint that returns an Image / ReadableStream, I will get a JSON.stringify error unless I specify a parser other than "json" in the payload. The param should be a String, according to the docs:
// Response parser // default: 'json' "parser": String,
However, the code seems to expect an object like
{done: 'someParser', fail: 'json'}
And even with the parser-option defined like this, it will then fail on line 95 of index.js:
return res[parser]()
Why does the line above expect a parser function on the raw res(ult)-object from fetch?
The text was updated successfully, but these errors were encountered: