trolster / urcli

CLI tool for the Udacity Reviews API
MIT License
100 stars 23 forks source link

"Error: getaddrinfo ENOTFOUND review-api.udacity.com review-api.udacity.com:443" and "Error: socket hang up" #100

Closed kartikarora closed 7 years ago

kartikarora commented 7 years ago

Guidelines to submit an issue

I'm opening this issue because:

What's going wrong?

List of errors:

If gone unnoticed for over an hour, the submission request is deleted from udacity's end.

How can the urcli team reproduce the problem?

supporting information:

Sinapse87 commented 7 years ago

I think this is due to udacity messing up with the ip addresses of its machines. Try to change your dns to google dns

gabraganca commented 7 years ago

I had a similar issue yesterday. It seems that the API is unstable.@trolster mentioned in #97, a related issue:

It's definitely a new thing. It's a DNS error, and I have no idea why it's happening. You should forward it to the reviews team and I'll leave this up in case someone else comes here with the same issue.

Mikkel, should we implement a patch that would catch API error and keep urcli running, as you mentioned in #97 ? I'll check the forever package you mentioned to see if it is a viable solution.

trolster commented 7 years ago

I don't think it's wise to change anything before we understand the error, and where it's coming from. Has anyone reported this to Udacity as a bug? If not, then let's all simply start reporting it and hopefully it will resolve itself.

I do look forward to hearing if the forever package will work. You may have to start the command from a shell script though. forever start assign.sh or something, as I assume that you can't just run forever start urcli assign all. I have not really had the time to look into it, but it would be a great way to keep urcli going through errors, without having to patch for every new individual error. I assume that we will at some point get every conceivable error with a large userbase on every different kind of platform and network.

trolster commented 7 years ago

Yeah, after some consideration, I've come to the conclusion that this is caused by the API and may not actually be fixable at all. For anyone who comes here in the future, report it to the API dev team at Udacity.