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
I also think it’s worth wrapping all the handlers in the interceptor in try/catch, so that in case of an error this does not affect the sending of the request. The error can be made non-blocking via handler.next() so that other interceptors can continue working.
Hey @Holofox , Thanks for pointing this out,
the body param is not yet initialized and +("Form data") was being appended to it.
Will fix this and let you know and I agree to your suggestion to handle the interceptors with try/catch, so that it wont hamper the Call, if the interception failed.
NoSuchMethodError:The method '+' was called onnull.\nReceiver:null\nTried calling:+("Form data")]
Hello! Thanks for the package! There is a problem with form data requests.
I'm guessing the problem is on this line:
infospect/lib/features/network/interceptors/infospect_dio_interceptor.dart
Line 51 in 157e004
I also think it’s worth wrapping all the handlers in the interceptor in
try/catch
, so that in case of an error this does not affect the sending of the request. The error can be made non-blocking viahandler.next()
so that other interceptors can continue working.infospect/lib/features/network/interceptors/infospect_dio_interceptor.dart
Line 39 in 157e004
infospect/lib/features/network/interceptors/infospect_dio_interceptor.dart
Line 111 in 157e004
infospect/lib/features/network/interceptors/infospect_dio_interceptor.dart
Line 145 in 157e004
The text was updated successfully, but these errors were encountered: