Giter VIP home page Giter VIP logo

Comments (4)

ArneSaknussemm89 avatar ArneSaknussemm89 commented on May 30, 2024 1

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.

JoseGeorges8 avatar JoseGeorges8 commented on May 30, 2024

@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.

britov avatar britov commented on May 30, 2024

UP

from instabug-dio-interceptor.

AliAbdelfattah avatar AliAbdelfattah commented on May 30, 2024

Package updated to work with Dio 4.0

from instabug-dio-interceptor.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.