Cordova Slack Digest

Sun, 05 Dec 2021 08:21:16 GMT

User count: 4680

Join the conversation at slack.cordova.io

Channel #general (7 messages)


Sat, 04 Dec 2021 19:24:31 GMT

@harel.mazor says

I'm running an angular app using cordova, and I see a strange behavior where a http request is returning as failed but the server never got the request. It might be related to the fact that the app went to the background right after starting to send the request? Has anyone encountered such issue?

Sat, 04 Dec 2021 19:34:52 GMT

@norman137 says

ios or android, or both?

Sat, 04 Dec 2021 20:09:13 GMT

@harel.mazor says

Android is where I saw this, but it might be both...

Sat, 04 Dec 2021 20:11:01 GMT

@harel.mazor says

It might be related to this: I was not aware of client side http errors I guess...? https://stackoverflow.com/questions/46019771/catching-errors-in-angular-httpclient|https://stackoverflow.com/questions/46019771/catching-errors-in-angular-httpclient

Sat, 04 Dec 2021 22:09:25 GMT

@norman137 says

hmm not sure... on iOS I was gunna suggest the fact that the webview gets paused when the app goes into the background might play a role -- but I'm not entirely sure on that either.

Sat, 04 Dec 2021 22:36:01 GMT

@jcesarmobile says

Requests that don’t reach the server are usually misconfigurations of CSP or allow-list plugin. Sometimes CORS, they reach but it’s a preflight request that might not be seen on the server if you only expect get/post

Sun, 05 Dec 2021 05:53:24 GMT

@harel.mazor says

The problem occurred in bad reception conditions, it does not happen all the time so I don‘t think it’s a configuration issue...