Comments (4)
I've actually submitted a PR for doing that here #3.
I also forked it here with the changes https://github.com/ArneSaknussemm89/Instabug-Dio-Interceptor/tree/dio3-support.
Been using it for the past few weeks.
from instabug-dio-interceptor.
@ArneSaknussemm89 Your fork (and the original) is throwing an exception when I plug it into my dio:
flutter: The following ArgumentError was thrown:
flutter: Invalid argument: Instance of 'ResponseBody'
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0 StandardMessageCodec.writeValue (package:flutter/src/services/message_codecs.dart:404:7)
flutter: #1 StandardMessageCodec.writeValue.<anonymous closure> (package:flutter/src/services/message_codecs.dart:401:9)
flutter: #2 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
flutter: #3 StandardMessageCodec.writeValue (package:flutter/src/services/message_codecs.dart:399:13)
flutter: #4 StandardMessageCodec.writeValue (package:flutter/src/services/message_codecs.dart:394:9)
flutter: #5 StandardMethodCodec.encodeMethodCall (package:flutter/src/services/message_codecs.dart:536:18)
flutter: #6 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:151:13)
flutter: #7 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
flutter: #8 NetworkLogger.networkLog (package:instabug_flutter/NetworkLogger.dart:17:27)
Edit: nevermind this happens when I'm downloading a file, which returns an 'instance of ResponseBody' so it doesn't have to do with the interceptor, but with the mapping of the NetworkData not handling a ResponseBody object
from instabug-dio-interceptor.
UP
from instabug-dio-interceptor.
Package updated to work with Dio 4.0
from instabug-dio-interceptor.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instabug-dio-interceptor.