Closed mmadtop closed 3 years ago
Issue-Label Bot is automatically applying the label question
to this issue, with a confidence of 0.80. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Hi, short answer: currently no.
Long answer: I am working on it. Since Flutter Web is not stable yet it can change and it's not part of what I initially thought to implement. However, my plan for this is to add a separate branch that provides support for this, especially since this is really a simple plugin that should be allowed to be used in different platforms even while in beta.
Can you please keep this one open? Even though it's not stable yet, there are a lot of people using it already. And having this package work on web would be great.
Sure thing. Still on my to-do though
Sure thing. Still on my to-do though
what's the crux of the issue? I set breakpoints and this is where the error is throwing: https://github.com/CodingAleCR/http_interceptor/blob/94cfcaeb6010174621f2da40b825c10ce2740386/lib/http_client_with_interceptor.dart#L49-L54
TBH, I didn't expect the plugin to be used much besides by myself, but I'm noticing an increase in the usage, so I'm moving this up in my priorities so that I can give proper maintenance to the plugin and provide usefulness out of it for the whole flutter community. So sorry it has taken this long 😔
As of 0.4.0 you should be able to use this plugin for flutter web without any issues. Cheers!
Hello, I've succesfully used this library for a mobile app. I'm trying to use it in a web app but it gives me error when I make a request with interceptor.
I would like to know if is not provided for the web version or if is another type of error.
Thank you in advance.
this is the stack:
onError Expected a value of type 'Exception', but got one of type 'UnsupportedError' Error: Unhandled error Expected a value of type 'Exception', but got one of type 'UnsupportedError' occurred in Instance of 'AuthenticationBloc'. C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddcruntime/errors.dart 212:49 throw C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 60:3 castError C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 442:10 cast C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/types.dart 411:9 as packages/http_interceptor/http_client_with_interceptor.dart 222:23 _attemptRequest$
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1450:54 runUnary
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 143:18 handleValue
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 696:44 handleValueCallbackC:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 725:32 _propagateToListeners C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 393:9 callback C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/schedule_microtask.dart 41:11 _microtaskLoop
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/schedule_microtask.dart 50:5 _startMicrotaskLoopC:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 166:15