apache / cordova-plugin-file-transfer

Apache Cordova File Transfer Plugin
https://cordova.apache.org/
Apache License 2.0
595 stars 888 forks source link

File transfer couldn't trigger URL #276

Closed madhuranga-smarttimes closed 3 years ago

madhuranga-smarttimes commented 3 years ago

Filetransfer show error code 3 when call download function with http_status:401

Version : "cordova-plugin-file-transfer": "^1.7.1", ionic 5 with capacitor

breautek commented 3 years ago

Status code 401 means "Unauthorized". The server has acknowledged your request and decided that you're for some reason unauthorized.

From the information you've provided, nothing indicates a problem with this plugin. You should look at the API documentation of the server you're hitting to determine what is missing or when the server returns 401 status code.

If you feel like this is a bug with this plugin, I'll ask you to recreate this issue with the issue form filled out rather than deleting the form provided.

madhuranga-smarttimes commented 3 years ago

The thing it works perfectly with the ionic 3 version and recently we revamp with ionic 5. After we get this error. Mostly I guess some of the permission issues from the client-side.

conquor commented 3 years ago

same error to me

ArturV93 commented 3 years ago

I had the same issue on Capacitor. To solve it I installed the cordova-plugin-whitelist

Commands: npm install cordova-plugin-whitelist npx cap sync