NativeScript / nativescript-background-http

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

IOS internal server error 502 #264

Open vicmasa opened 4 years ago

vicmasa commented 4 years ago

Hello, we created a service in AWS Lambda, which works fine on Android, but not on IOS (The request does not leave the device). Returns the following message:

responseCode: 502
message: Internal Server Error

We have placed the following settings in info.plist

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
        <key>NSExceptionDomains</key>
        <dict>
            <key>example.com</key>
            <dict>
                <key>NSExceptionAllowsInsecureHTTPLoads</key>
                <true/>
                <key>NSIncludesSubdomains</key>
                <true/>
            </dict>
        </dict>
    </dict>

Which platform(s) does your issue occur on?

Please, tell us how to recreate the issue in as much detail as possible.

Select the blue "Obtener Imagen" button, and choose an image.

Code project vanilla:

https://github.com/vicmasa/ns-background-http-vanilla.git

Image Bug:

https://github.com/vicmasa/ns-background-http-vanilla/blob/master/app/images/bug_ios.png?raw=true