Fork me on GitHub
#re-frame
<
2023-01-16
>
Asher Serling09:01:26

Using the http-xhrio effect library, why would my :on-failure effect be dispatched when my request returns with a 200?

p-himik09:01:30

If you provide an MRE, I can take a look.

p-himik10:01:56

One possible reason is that you're telling http-xhrio that the response will be in a certain format, but it actually isn't and the library fails to parse it. In any case, the reason should be in the argument to the :on-failure event.

Asher Serling10:01:57

that was the issue, i found that i had specified json-request-format as the response format

Asher Serling10:01:08

surprised chat-gpt didn't pick that one up

😄 8
Asher Serling10:01:27

he had nothing but nice things to say