You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment when the server returns an error, reconnection does not work. The problem is in the code section (see below).
The problem is with "return" after calling onError.
Hi! As I wrote above, the problem lies in your code section, where you throw an onError and make a return for any response code less than 200 or more than 300. Thus, you break the logic of reconnection. I bypassed this from my side in my wrapper, as my business demanded. I would be grateful if you would review your code again and correct it. Maybe I didn't do it quite right.
At the moment when the server returns an error, reconnection does not work. The problem is in the code section (see below).
The problem is with "return" after calling onError.
File: client.dart
The text was updated successfully, but these errors were encountered: