Giter Site home page Giter Site logo

Comments (6)

zfir avatar zfir commented on September 17, 2024

Hello @nvahalik,

On which platform are you having this problem?

Regards,
Zafir.

from cordova-plugin-background-upload.

nvahalik avatar nvahalik commented on September 17, 2024

from cordova-plugin-background-upload.

ombr avatar ombr commented on September 17, 2024

I think this is expected. You should check the status code on your side. You will only get a failure if the request did not went through.

from cordova-plugin-background-upload.

nvahalik avatar nvahalik commented on September 17, 2024

@ombr This makes no sense, though. Any response >= 400 is an error. A 4xx is a client error and a 5xx is a server error.

This is a bug in the plugin.

from cordova-plugin-background-upload.

ombr avatar ombr commented on September 17, 2024

@nvahalik I understand this is not intuitive. This library was created from this library and was following the same principle (at that time) gotev/android-upload-service#259 (you should check the issue).

You are more than welcome to submit a pull-request for this.

One thing to keep in mind is that we might want to save the response even if the status code is > 400 as we might want to use it to better understand the error.

Thanks.

Luc

from cordova-plugin-background-upload.

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.