Coder Social home page Coder Social logo

Comments (6)

haroldadmin avatar haroldadmin commented on June 14, 2024

Is it possible that you're running a CoroutineExceptionHandler in the CoroutineScope of your API call?

I shall take a look at this over the weekend and see if I can reproduce this.

from networkresponseadapter.

sebaslogen avatar sebaslogen commented on June 14, 2024

Is it possible that you're running a CoroutineExceptionHandler in the CoroutineScope of your API call?

We don't have any CoroutineExceptionHandler, I also searched in the whole project just in case but nothing.

from networkresponseadapter.

haroldadmin avatar haroldadmin commented on June 14, 2024

I'm not sure where exactly is the error swallowed, but this issue does highlight the need for a new subclass for NetworkResponse, which can be used for all errors that are not Network/Server errors.

I've created a new development branch and just pushed a new release 4.0.0-alpha01 to it, which contains these changes: a new NetworkResponse.UnknownError class, which can be used for handling data parsing errors.

Since this is a breaking change, I have not merged it to the master branch yet. Please try it and let me know if this change helps you.

Version 4.0.0-alpha01

from networkresponseadapter.

sebaslogen avatar sebaslogen commented on June 14, 2024

Awesome, thanks! I'll give it a try and let you know.

from networkresponseadapter.

sebaslogen avatar sebaslogen commented on June 14, 2024

Integration into our project worked fine and now it shows a correct error in the UI instead of swallowing the exception 👍
PS: I quickly reviewed the code of the fix and it looks 💯 good quality.

Thanks again for the fix and fast response.

from networkresponseadapter.

haroldadmin avatar haroldadmin commented on June 14, 2024

I'm glad the fix works for you. I'm gonna keep it in alpha, and promote it to a stable release after some time. Closing this issue for now.

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.