Open blooser opened 1 month ago
That's an error that's either thrown either by response.text()
or by JSON.parse(text)
- assuming you're using the default responseHandler
json
.
It's an error from your browser. This kind of encoding should be handled by your browser - if it doesn't, your server is probably sending incorrect data.
Hello!
I'm using redux rtk and cofigured it with
prepareHeaders
. When server throw encoded request with gzip, redux has a problem decoding it and raisesTypeError: Decoding failed
.The full error message is:
Prepare header part is:
I tested encoded response from server and it is correctly encoded, the problem must be on frontend side.