Error: getaddrinfo ENOTFOUND postman when i try to do a request - postman

I have this error when i do a request to a url, but it only happen in my pc, i have proved it in 4 pcs, with the same url and the same parameters, and in the mine is the only one that shows this error

Related

'Connection aborted.', ConnectionResetError 10054 error in django while trying to make a post request with files

I'm working on a django project for which I'm using an external API service. I have to send image files in the payload as well. When making a post request to the service, I'm getting this error:
ConnectionError
('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
Some key points are:
The request works perfectly fine on Postman.
The error appears only when I attach FILES in the payload, without which it works fine.

500 error vs 404 error which one is more desirable?

I am a student who is studying the development of django.
I have a question about 404 and 500 errors.
I handle 404,500 error as 404.html and 500.html respectively.
So, is there a difference between these two error events?
For example,
def example_post_404(request, pk):
get_object_or_404(Post, id=pk) # code that may occur 404 error
vs
def example_post_500(request, pk):
Post.objects.get(id=pk) # code that may occur 500 error
Did 500 error event put more pressure on the server than 404 error event?
Which code is more desirable?
My code is running on AWS EC2 ubuntu-16.04
The difference between any 400 error versus a 500 error is based on whether it is the fault of the client or the server that the request was not parsed.
for instance, a 404 error means the object was not found; what does this mean? it means that based on what the client was asking for, the server could not return a result.
another example, a 503 Service Unavailable; the server recieved the reponse, and although the client request is valid the server was unable to provide the response.
That is the difference between a 4XX error and a 5XX error, if you'd like more detailed information on what to respond with when an error occurs, please refer to the HTTP documentation:
https://www.rfc-editor.org/rfc/rfc2616
404 is page not found
500 is an internal system error
If a user requested a page/url that does not exist, return 404. If something happens to your system (like a bug, an unexpected error), return 500.
404 Error is Page not found to url calling.
500 is an internal error for our system(like Django un-authenticate user access)

I can't get http code 404 with libcurl

When I send a http request using a wrong server address like 127.0.0.1 as the server address of a URL, the libcurl returns CURLE_OK and get me the http code 0. However, I get http code 404 when I send the same request with IE. Does anyone know how can I get an error code rather than 0 with libcurl when sending request like that.
libcurl returns CURLE_OK when the transfer went fine. Getting a 404 from a HTTP server is considered a fine transfer. You can make >=4xx HTTP response codes cause a libcurl error by setting the CURLOPT_FAILONERROR option.
Alternatively, and this may be the nicer way, you extract the HTTP response code after the transfer, with for example curl_easy_getinfo() to figure out the HTTP response code to see what the HTTP server thought about the resource you requested.
Try using it to visit a site that's actually running a web server, and try to retrieve a file that doesn't exist. For example, http://www.google.com/404. Your browser is almost certainly not actually getting a 404 from visiting 127.0.0.1, even if it's telling you that's what it got.

Google OAUTH gives 502 error

I am successful in authenticating users locally, but on the production server I am receiving 502 errors after timeout..
here is my FLOW:
FLOW = OAuth2WebServerFlow(
client_id='YOUR_CLIENT_ID',
client_secret='YOUR_CLIENT_SECRET',
scope='https://www.googleapis.com/auth/calendar',
user_agent='Real_Hub/1.0',
redirect_uri='quickerhub.com',)
locally redirect_uri is simply my localhost ip and it works fine.
here is my error through chrome network panel:
quickerhub.com
GET
502
Bad Gateway
text/html
This likely has to do with your redirect_uri. 502 is a very general error. It indicates that Django (probably uWSGI or Passenger) was unable to get a response before timeout. Have you tried that uri directly in your browser? If you have any HTTP authentication or anything on that domain, it will cause this error. For some reason, the OAuth does not seem to be properly creating the redirect response.
Hope this helps!

App request dialog shows 500 internal server error

I'm using facebook's app app request dialog. It used to work fine...but I get the following error message with infinite loading image.
"NetworkError: 500 Internal Server Error - https://www.facebook.com/dialog/apprequest?access_token=AAACvZBzj3fc0BAETVk8NOCiXqsGq2uXlUC0EUUX1pMXIPWxfIrhbboHQCvBPR0XKasdfFU30ZCpq1C4GqfEZD&api_key=19349352asdf95789&app_id=19349adf27395789&channel=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df3fb42d06cf1cf4%26origin%3Dhttp%253A%252F%252Fasdf%252Ff3aaa156051f95%26relation%3Dparent.parent%26transport%3Dpostmessage&channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df3b386a6f30f464%26origin%3Dhttp%253A%252F%252Fasdfm%252Ff3aaa156051f95%26relation%3Dparent.parent%26transport%3Dpostmessage&data=%7B%7D&display=iframe&locale=en_US&message=0&next=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df60d0ad8457e2%26origin%3Dhttp%253A%252F%252Fdev-sherlock.thecimarrongroup.com%252Ff3aaa156051f95%26relation%3Dparent%26transport%3Dpostmessage%26frame%3Df19043b1779432%26result%3D%2522xxRESULTTOKENxx%2522&sdk=joey"
uncaught exception: Error: Permission denied for <http://static.ak.facebook.com> to get property Proxy.InstallTrigger
Is it an error on facebook end?