The solution came from a different source, but I post it here to help others looking for the same issue. Basically I used Android AVD (emulator) to build the application. But the emulator is in fact another machine, and that’s why it couldn’t call the localhost.
To solve the probleme, I had to send the request in the following way:
- How to configure axios to use SSL certificate?
- How to display the lastmessage sent when user is not inside the chat?
- npm install Error: rollbackFailedOptional
- NodeJS, Axios – post file from local server to another server
- change directory command cd ..not working in batch file after npm install
- Ignore invalid self-signed ssl certificate in node.js with https.request?
- res.sendFile absolute path
- Node/Express file upload
- How can I set cookie in node js using express framework?
- How to install npm peer dependencies automatically?
- Timeout in async/await
- How, in general, does Node.js handle 10,000 concurrent requests?
- Order of router precedence in express.js
- When is the thread pool used?
- nvm keeps “forgetting” node in new terminal session
- HAProxy + WebSocket Disconnection
- Node.js: Python not found exception due to node-sass and node-gyp
- CRUD blueprint overriding in sails.js
- chai test array equality doesn’t work as expected
- How to run TypeScript files from command line?
- npm install -g less does not work: EACCES: permission denied
- Authenticating socket io connections using JWT
- How to reuse redis connection in socket.io?
- Using Environment Variables with Vue.js
- npm install errors with Error: ENOENT, chmod
- How do I determine the correct “max-old-space-size” for node.js?
- req.query and req.param in ExpressJS
- Node.js get image from web and encode with base64
- Why is node.js only processing six requests at a time?
- MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
- Restrict access to Node.js-based HTTP server by IP address
- Node.js spawn child process and get terminal output live
- How to debug a socket hang up error in NodeJS?
- Google spreadsheet api Request had insufficient authentication scopes
- Returning data from Axios API [duplicate]
- node process doesn’t exit after firebase once
- The engine “node” is incompatible with this module
- Is there any way to configure multiple registries in a single npmrc file
- How to wrap a buffer as a stream2 Readable stream?
- How to Reinstall Broken npm
- Error installing Angular using npm due to require-from-string
- Running ‘npm audit fix –force’ downgrades react-scripts
- How to Delete node_modules – Deep Nested Folder in Windows
- Read file from aws s3 bucket using node fs
- Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE Phonegap Installation
- How to change value of process.env.PORT in node.js?
- How to resolve Node.js: “Error: ENOENT: no such file or directory”
- How to restore/reset npm configuration to default values?
- “npm install” installs all dependencies in node_modules directory, instead of having them nested
- How to exclude entity field from returned by controller JSON. NestJS + Typeorm