NatLabRockies / NatLabRockies/developer.nlr.gov
DNS lookup issue
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 60
- Forks
- 57
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 3
Description
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.....
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the POST request to developer.nrel.gov/api/alt-fuel-stations/v1/nearby-route.json using the sanitized request details and inspect the intermittent getaddrinfo failure. Done means identifying whether the API's DNS or endpoint availability is responsible and documenting a verified resolution or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, networking
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100