-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Error: getaddrinfo ENOTFOUND https https:80 #167
Comments
It seems that your nginx configuration converts double slashes to one slash. |
Indeed, that was the problem |
Hi, I have tried every possible ways couldn't found any solution. Thanks |
Hi, Thanks |
Hi,
Due the limitation of number of requests per period I'm trying to host cors-anywhere on my server.
Since my application runs on 8080, I've changed the port to run on 8888 and proxy passed on nginx (https://my-website.com/cors/).
The issue is that when I put the protocol on the URL I get the following error
Not found because of proxy error: Error: getaddrinfo ENOTFOUND https https:80
For GET requests works perfectly if I don't put the protocol on the URL, for example:
Returns correctly:
GET - https://my-website.com/cors/api.cartolafc.globo.com/esquemas
Returns error:
GET - https://my-website.com/cors/https://api.cartolafc.globo.com/esquemas
Unfortunately I can't use request without the protocol because when I send POST request I receive the error
Not found because of proxy error: Error: getaddrinfo ENOTFOUND https https:80
. Without the protocol, the request are been made using GET, which returns status code 405 since the API expect an POST request.Returns error:
POST - https://my-website.com/cors/https://api.cartolafc.globo.com/esquemas
Returns error:
POST - https://my-website.com/cors/api.cartolafc.globo.com/esquemas
(request upgrade to GET)Do you have any thoughts on what I'm missing?
Thanks in advance
The text was updated successfully, but these errors were encountered: