skrilax91 opened a new issue #1336:
URL: https://github.com/apache/cordova-android/issues/1336
# Bug Report
## Problem
I actually try to send request to an external API
### What is expected to happen?
I guess the request send me an http 200 response code
### What does actually happen?
Actually request send me an ECONNABORTED: "Request aborted" on android 8.1
tablet using cordova-android 10.1.0
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
This error appear on chinese android 8.1 tablet, this tablet dont have
google, i don't know if it's usefull but this tablet don't have baseband
version.
the request work on samsoung android 8.1 tablet to android 10 tablet
(android 11 not tested)
### Command or Code
code used to send request:
```js
axios.post('https://licences.#####.fr/api/subscribe').then(response => {
this.status = (response.data.success) ? "Connected" : "Not Connected"
this.error = ""
}).catch( e => {
this.status = "Error when calling api"
this.error = JSON.stringify(e)
})
```
response:
```json
{
"message": "Request aborted",
"name": "Error",
"stack": "Error: Request aborted\n at e.exports
(https://localhost/js/chunk-vendors.93185c27.js:94961)\n at
XMLHttpRequest.d.onabort
(https://localhost/js/chunk-vendors.93185c27.js:92636)",
"config": {
"url": "https://licences.######.fr/api/subscribe",
"method": "post",
"headers": {
"Accept": "application/json, text/plain, */*",
},
"transformRequest": [null],
"transformResponse": [null],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
},
"code": "ECONNABORTED"
}
```
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
This issue appear on a chanese android 8.1 tablet with vueJS or JQuery but
not appear on other samsoung tablet with android 8.1
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
- cordova CLI: 10.0.0
- cordova-android: 10.1.0
- android: 8.1
- package used for sending request: Axios (latest version)
- @vue/cli: 4.5.13
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]