NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
102 stars 50 forks source link

[IOS] Failed to issue sandbox #272

Closed mtenus closed 4 years ago

mtenus commented 4 years ago

OK, so the whole mechanism has been working since to version 13. After the upgrade there occurs an issue with a file uploading. My API gets an empty string ("") instead a file as a content. However, this issue occurs only with real devices. It works fine with emulators with the same version. Besides, the mechanism works well on Android.

Full error:

Failed to issue sandbox extension for file file:///var/mobile/Media/DCIM/104APPLE/IMG_4848.JPG, errno = 1

My pakcages

{
  "nativescript": {
    "id": {
      "android": "org.xxx.yyy",
      "ios": "xxx"
    },
    "tns-ios": {
      "version": "6.5.0"
    },
    "tns-android": {
      "version": "6.5.3"
    }
  },
  "dependencies": {
    "@angular/animations": "~8.2.0",
    "@angular/common": "~8.2.0",
    "@angular/compiler": "~8.2.0",
    "@angular/core": "~8.2.0",
    "@angular/forms": "~8.2.0",
    "@angular/http": "8.0.0-beta.10",
    "@angular/platform-browser": "~8.2.0",
    "@angular/platform-browser-dynamic": "~8.2.0",
    "@angular/router": "~8.2.0",
    "@nstudio/nativescript-cardview": "^1.0.0",
    "@nstudio/nativescript-checkbox": "^1.0.0",
    "@types/circular-json": "^0.4.0",
    "circular-json": "^0.5.9",
    "nativescript-angular": "^8.21.0",
    "nativescript-background-http": "^4.1.0",
    "nativescript-camera": "^4.5.0",
    "nativescript-drop-down": "^5.0.4",
    "nativescript-imagepicker": "^7.1.0",
    "nativescript-iqkeyboardmanager": "^1.5.1",
    "nativescript-localize": "^4.2.0",
    "nativescript-localstorage": "^2.0.1",
    "nativescript-modal-datetimepicker": "^1.2.0",
    "nativescript-ng-shadow": "^2.1.0",
    "nativescript-permissions": "^1.3.7",
    "nativescript-plugin-filepicker": "^1.0.0",
    "nativescript-plugin-firebase": "^9.1.1",
    "nativescript-ripple": "^2.2.1",
    "nativescript-theme-core": "^1.0.6",
    "nativescript-toasts": "^1.0.3",
    "nativescript-ui-calendar": "^5.0.0",
    "nativescript-ui-listview": "^7.0.5",
    "nativescript-ui-sidedrawer": "^7.0.1",
    "nativescript-web-image-cache": "^5.0.0",
    "reflect-metadata": "^0.1.13",
    "rxjs": "^6.4.0",
    "rxjs-compat": "^6.5.2",
    "tns-core-modules": "^6.4.1",
    "zone.js": "^0.9.1"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~8.2.0",
    "@nativescript/schematics": "^0.5.2",
    "@ngtools/webpack": "~8.2.0",
    "nativescript-dev-webpack": "^1.5.0",
    "tns-platform-declarations": "6.0.1",
    "typescript": "~3.5.3"
  },
}

I guess that's a similar issue https://github.com/dropbox/SwiftyDropbox/issues/256

mtenus commented 4 years ago

An issue occurs because of the wrongly written image's handler. The plugin works fine after fixing that issue.