Possible Unhandled Promise Rejection (id: 0): [Answer] React Native Error while making XMLHttpRequest via device or emulator - reactjs

logging error like: Unhandled Promise Rejection with Error: Network Error
Possible Unhandled Promise Rejection (id: 0):
Error: Network Error
Error: Network Error
at createError (blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:79490:17)
at XMLHttpRequest.handleError (blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:79398:16)
at XMLHttpRequest.dispatchEvent (blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:17902:39)
at XMLHttpRequest.setReadyState (blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:17657:20)
at XMLHttpRequest.__didCompleteResponse (blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:17484:16)
at blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:17594:47
at RCTDeviceEventEmitter.emit (blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:3480:37)
at MessageQueue.__callFunction (blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:2386:44)
at blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:2156:17
at MessageQueue.__guardSafe (blob:http://localhost:8081/3aab7ec1-40be-4c43-864c-6474a71b00c9:2348:11)

This error comes when your device or emulator is not connected to internet and trying to make XMLHttpRequest with axios or fetch via device or emulator.
Please make sure you are connected on the same network on both your machine and your device. Also reverify that your debugger is running on localhost.

Related

mongo-express can't connect to MongoDB

I have a problem my mongo-express container can't connect to the MongoDB container. Although I didn't change my code, I changed the version of the image container by downloading the latest version. And this is the log file from the mongo-express container.
(node:7) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring
engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
Could not connect to database using connectionString: mongodb://admin:password#mongodb:27017/"
(node:7) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [mongodb:27017] on first connect [MongoNetworkTimeoutError: connection timed out
at connectionFailureError (/node_modules/mongodb/lib/core/connection/connect.js:362:14)
at Socket.<anonymous> (/node_modules/mongodb/lib/core/connection/connect.js:330:16)
at Object.onceWrapper (events.js:420:28)
at Socket.emit (events.js:314:20)
at Socket._onTimeout (net.js:483:8)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)]
at Pool.<anonymous> (/node_modules/mongodb/lib/core/topologies/server.js:441:11)
at Pool.emit (events.js:314:20)
at /node_modules/mongodb/lib/core/connection/pool.js:564:14
at /node_modules/mongodb/lib/core/connection/pool.js:1000:11
at /node_modules/mongodb/lib/core/connection/connect.js:32:7
at callback (/node_modules/mongodb/lib/core/connection/connect.js:300:5)
at Socket.<anonymous> (/node_modules/mongodb/lib/core/connection/connect.js:330:7)
at Object.onceWrapper (events.js:420:28)
at Socket.emit (events.js:314:20)
at Socket._onTimeout (net.js:483:8)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I tried to connect mongo-express to MongoDB and every 10 seconds mongo-express restarted.

Error: 410 Gone: "The RPC call or parameters have been disabled."

Please Help ,I have been trying to execute this script (link below) to get NFT Mint Addresses . Unfortunately I always get this error no matter which candy machine v1 or v2 I use.
https://solanacookbook.com/references/nfts.html#how-to-get-nft-mint-addresses
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
(node:11240) UnhandledPromiseRejectionWarning: Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."}, "id": "3bc319ad-c4e0-45a4-b4bf-c1009ce99851" }
at ClientBrowser.callServer (C:\Users\mlvie\Desktop\ranking projects\test4\node_modules\#solana\web3.js\lib\index.cjs.js:4819:18)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:11240) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11240) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Different RPCs will not allow the RPC call getProgramAccounts because it is very expensive to the RPC infrastructure
You are running into 410 gone because whatever RPC you're hitting has removed it

ERR CONNECTION RESET while uploading file to S3 using aws-amplify storage

Using aws-amplify storage to upload file to s3. But for some files I get this error
ConsoleLogger.js:133 [ERROR] 34:07.292 axios-http-handler Error: Network Error
at LYNF.e.exports (createError.js:17)
at XMLHttpRequest.p.onerror (xhr.js:80)
e._log # ConsoleLogger.js:133
ConsoleLogger.js:141 [WARN] 34:07.293 AWSS3Provider - error uploading Error: Network Error
at LYNF.e.exports (createError.js:17)
at XMLHttpRequest.p.onerror (xhr.js:80)
Error is not consistent. It shows ERR_CONNECTION_RESET in network tab.
aws-amplify - 3.0.20
aws-amplify-react - 4.1.19

Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:62427

HI im using seleinum web deriver to apply some tests and im getting this error:
(node:4147) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:62427
(node:4147) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zerexit code.
I tried to put in vagrant file
config.vm.network :forwarded_port, guest: 62427, host: 62427
but its firing this errors:
ECONNREFUSED connect ECONNREFUSED 127.0.0.1:57807
ECONNREFUSED connect ECONNREFUSED 127.0.0.1:54991
always with a different port
thanks in advance
Carlos Vieira
i found the solution on this issue
Running node js selenium test case on Chrome get Error Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:63528
i have applied the same and it works.
Many thanks
Carlos Vieira

Apprtc - Websocket connection failed

I have installed and configured AppRTC, Collider, turn-server successfully.
But I am facing an issue of Websocket Error. Google chrome console errors are as follows:
Initializing; server= undefined.
apprtc.debug.js:5583 1.413: Initializing; room=undefined.
apprtc.debug.js:5583 5.209: Opening signaling channel.
apprtc.debug.js:5583 5.390: Got access to local media with mediaConstraints:
'{"audio":true,"video":{"optional":[{"minWidth":"1280"},{"minHeight":"720"}],"mandatory":{}}}'
apprtc.debug.js:5583 5.390: User has granted access to local media.
apprtc.debug.js:5583 5.391: Attaching local stream.
apprtc.debug.js:5092 WebSocket connection to 'wss://104.198.4.111:8089/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
(anonymous) # apprtc.debug.js:5092
apprtc.debug.js:5583 5.578: WebSocket open error: WebSocket error.
apprtc.debug.js:5583 5.584: WebSocket register error: WebSocket error.
apprtc.debug.js:5583 5.636: Joined the room.
Following is the screenshot of WebSocket error, which I am facing
Collider and AppRTC are on Google VM instance and I have used my own turn-server which has been setup on AWS EC2 instance.
Please help me to resolve this issue.
Is there any setting in Google APP engine, where I deployed an APP?
Advanced help would be appreciated !

Resources