#NeedHelp
Has anyone faced the below issue while hitting an API? I guess it is something related to system configuration and not related to API. As others can fetch response from this.
But in my case, the api gives response sometimes and sometimes it throws below error:
getaddrinfo ENOTFOUND
Is it something related to localhost.
I'm using a mac machine.
Please help If you have any idea on this?
Related
-I'm using (https://github.com/xdk2mam/xdk2mam/tree/Workbench-3.6/http-sdcard).
-I'm not versed on JS so I'm not understanding the problem here.
-I'm trying to send a string of sensor data to the tangle and listen to it using a node.js server.
-I keep getting either ECONNREFUSED or ECONNRESET and Protocol not supported(but I think I get when this last one happens, but I don't really understand why.
-I'm trying to use comnet [I assumed it would be for such tasks]
-(https://comnet.tanglebay.com/)
-(https://api.lb-0.testnet.chrysalis2.com/)
-with port 15600
-I'm also trying to get my node up and running to test such things but still don't have enough peers to sync to(but the node is running).
-Correct me if I'm wrong but my understanding is:
-IOTA messaging(gossip) is free right?
-So why would any Node deny the connection?
-So the problem must be in the connection, but if that's the case the reason escapes me.
-Do I need some kind of authorization from the node for the message to go trough?
-Can anyone have a quick look and point me in the right direction? Any help would be appreciated.
I solved this error by opening the respective port on the firewall. Got me another error now.
connect ETIMEDOUT
I'm now using:
https://github.com/iot2tangle/XDK110-Bosch/tree/master/http-sdcard this is apparently working
I am trying to run the backend of my project using docker but I'm getting this weird mongo network error and I just can't figure out why I'm getting this error. When I use the command docker-compose up, it gives me this error and because of that I can't even test localhost:3001.
Please help me solve this error. I can provide additional details if needed. I also looked at questions asked previously and tried all those solutions but nothing seems to help.
Here's my docker-compose.yml file. I've removed some important details but you can assume they are all there.
I'm a front-end developer that want to use websocket+node.js for a game in the browser.
What I'm asking for is a great tutorial on how to get that working in the Google Cloud or any other help for that matter.
What I found is this:
https://cloud.google.com/solutions/real-time-gaming-with-node-js-websocket
But I'm not that familiar with the server end and is all new to the Google platform so it doesn't help me a lot.
I have a simple socket example working as long as it's in my local environment but when I deploy it I get lot's of strange errors in the console.
You can find it here
http://socket-1281.appspot.com/
There error in the console log says:
WebSocket connection to 'ws://socket-1281.appspot.com/socket.io/?EIO=3&transport=websocket&sid=BXTZAZbQVQYA1TBLAAAA' failed: Error during WebSocket handshake: Unexpected response code: 400
Failed to load resource: the server responded with a status of 400 (Bad Request)
So does anyone know how to solve this or where to find help?
Here's the source
https://app.box.com/s/a3ma8ivel1qj378m9nh7s9q1e3xreo7n
The loadbalancer of Google App Engine doesn't support websockets. If you try to connect to socket-1281.appspot.com it will go through the loadbalancer and won't work. What you need to do is to avoid the load balancer by directly connecting to your instance.
Here is an example that might help:
https://github.com/thebergamo/appengine-websocket-nodejs#how-to-setup-the-deployment-environment
I am trying to register my users with Facebook using passport-facebook#1.0.3 following this example. My problem is that when the user is authenticated the response is:
Failed to obtain access token
Error: getaddrinfo ENOTFOUND at
Strategy.OAuth2Strategy._createOAuthError
/home/sigfried/github/passport-social/node_modules/passport-facebook/node_modules/passport-oauth2/lib/strategy.js:348:17)
I've checked my Express routes and everything seems to be fine. I checked the Network methods with Firefox and when the response come back to my server I've noticed an 500 Internal Server Error with this address: http://localhost:3000/login/facebook/callback?code=L4rg3H4sh#_=_
check whether your ssl connection is blocking this..
Most likely I was trying to access an address in my localhost, so I think that the solution here would be to expose, with something like ngrok, my local server and then problem solved.
Hope this helps someone in a hurry or as naive as I was.
I'm getting a lot of errors intermittently from Cloudant, when I post several thousand ~1000-character documents 10 at a time to _bulk_docs, from a Node app running on my local machine:
Error: getaddrinfo ENOTFOUND samdutton.cloudant.com
What does this error mean?
I've found a few similar problems online, but any suggestions how to avoid this error?
"getaddrinfo" represents your machine's inability to use DNS to find an IP address for the domain name "samdutton.cloudant.com". Can you confirm that your machine is able to resolve this DNS record correctly by doing
dig samdutton.cloudant.com
or
nslookup samdutton.cloudant.com
from your command line?