purescript-payload icon indicating copy to clipboard operation
purescript-payload copied to clipboard

No DecodeResponse instance at runtime

Open abigailalice opened this issue 2 years ago • 0 comments

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.

abigailalice avatar Oct 17 '22 04:10 abigailalice