Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS lookup issue #121

Open
andyweiss1982 opened this issue May 30, 2019 · 6 comments
Open

DNS lookup issue #121

andyweiss1982 opened this issue May 30, 2019 · 6 comments

Comments

@andyweiss1982
Copy link

I am having trouble connecting to this API. About 40% of the time, it works just fine (I am making a post request with a long linestring, url encoded).

But about 60% of the time, I get this error when making the exact same request:

(getaddrinfo: nodename nor servname provided, or not known (developer.nrel.gov:443))

I have tried from several different wifi networks in different locations and it doesn't appear to be related to any firewall restrictions on my end -- the results are consistently spotty across locations.

Any advice on how I can get a consistent response from the API?

Sanitized, truncated request log below...

I, [2019-05-30T12:12:22.881589 #96234] INFO -- request: POST https://developer.nrel.gov/api/alt-fuel-stations/v1/nearby-route.json?api_key=**MYACTUALAPIKEY**
D, [2019-05-30T12:12:22.882028 #96234] DEBUG -- request: User-Agent: "Faraday v0.15.4"
Content-Type: "application/x-www-form-urlencoded"
D, [2019-05-30T12:12:22.882207 #96234] DEBUG -- request: distance=5&fuel_type=ELEC&route=LINESTRING%28-80.19179+25.761683%2C+-80.191801+25.761682%2C+-80.191955+25.761671%2C+-80.192644+25.761626%2C+-80.193278+25.761585.....

@GUI
Copy link
Member

GUI commented May 30, 2019

@andyweiss1982: We have external monitoring tools that haven't picked up these type of issues, but sorry for the trouble! Can you provide more details so we can try to get to the bottom of this? Can you tell us what DNS servers you're using and what location (country or US state) you're trying to make these connections from?

@andyweiss1982
Copy link
Author

andyweiss1982 commented May 31, 2019 via email

@GUI
Copy link
Member

GUI commented May 31, 2019

Can you share the DNS servers your development environment is using? On Windows, Mac, or Linux, I think you should be able to determine this by running nslookup developer.nrel.gov on the command line and sharing the output of that. If you're using a local DNS server, then it may also be helpful to find what external DNS servers you're using are. You can discover those by visiting https://browserleaks.com/ip and reporting the IP addresses under "Your DNS Servers." Thanks!

@andyweiss1982
Copy link
Author

andyweiss1982 commented May 31, 2019 via email

@GUI
Copy link
Member

GUI commented May 31, 2019

@andyweiss1982: Hm, I'm not seeing any details in your last message. Was there supposed to be a screenshot, or something else? If you were trying to attach a screenshot, you may need to post that directly to the GitHub interface (#121), rather than attaching it to an e-mail response.

@andyweiss1982
Copy link
Author

Thanks for the heads up! Screenshots below:

Screen Shot 2019-05-31 at 10 12 51 AM
Screen Shot 2019-05-31 at 10 12 08 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants