hoodunit / purescript-payload

An HTTP server and client library for PureScript
Apache License 2.0
100 stars 11 forks source link

No DecodeResponse instance at runtime #29

Open abigailalice opened 1 year ago

abigailalice commented 1 year ago

I've seen the following error at runtime, and am not sure how to interpret it.

DecodeError: { error: UnhandledResponseError 'Could not decode response - no DecodeResponse instance'

I would assume any lacking instance should result in a compile time error, but this happens at runtime, returning a Left value when I try to contact my server. Wrapping the response in a record seems to consistently fix the issue, though I'm not sure why it's sometimes necessary.