Giter Site home page Giter Site logo

Comments (5)

haroldadmin avatar haroldadmin commented on May 21, 2024

Hi, I am assuming you're using the 3.x version of the library. This issue was recently brought up in #6.

What ends up happening is that the JSON parsing exceptions are swallowed, and never returned as a NetworkResponse subclass. To fix it, there were some breaking changes made in 4.0.0-alpha01. A new subclass of NetworkResponse has been introduced by the name of UnknownError. This class is supposed to handle all other kinds of errors which can not be represented as a Server Error or a Network Error.

If you weren't using the 4.x release before, you might want to try it and see if it helps.

from networkresponseadapter.

anupdey99 avatar anupdey99 commented on May 21, 2024

Yes, you are right. I am using "3.0.1" version. Thanks for quick response and good work! :)

from networkresponseadapter.

haroldadmin avatar haroldadmin commented on May 21, 2024

No worries. The fix hasn't been merged to master yet. I want to wait a little more while before creating a new release with breaking changes.

from networkresponseadapter.

anupdey99 avatar anupdey99 commented on May 21, 2024

When can we accept new release?

from networkresponseadapter.

haroldadmin avatar haroldadmin commented on May 21, 2024

Just released the new version. See the release tag here. It should be available on Jitpack within a few mins if everything goes well.

from networkresponseadapter.

Related Issues (20)

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.