upstash / qstash-js

Message queue for serverless
https://docs.upstash.com/qstash
MIT License
133 stars 11 forks source link

Deleting Schedules Error: Unexpected end of JSON input #52

Closed msywulak closed 9 months ago

msywulak commented 9 months ago

Attempting to delete a schedule throws an error Error: Unexpected end of JSON input due to a res.json() being expected but not provided by the server.

In http.ts a response is expected return (await res.json()) as UpstashResponse<TResult>; but the server does not respond with one, so the above error is thrown.

msywulak commented 9 months ago

54 added parseResponseAsJson?: boolean; which fixes this issue

msywulak commented 9 months ago

Spoke too soon - that property was added but not utilized by schedules. Added it to #55

chronark commented 9 months ago

fixed in v2.1.6