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

"https://cors-anywhere.herokuapp.com/" is down #142

Closed
liamzhang40 opened this issue Oct 30, 2018 · 10 comments
Closed

"https://cors-anywhere.herokuapp.com/" is down #142

liamzhang40 opened this issue Oct 30, 2018 · 10 comments

Comments

@liamzhang40
Copy link

screen shot 2018-10-29 at 11 43 40 pm

I am using this for Yelp API

Time to response: ~ 70 - 90 ms
HTTP status code in response: 503
HTTP response body:
screen shot 2018-10-29 at 11 48 10 pm

and this is intermittently (second time it happened to me)

hopefully this is helpful for debugging

@egfx
Copy link

egfx commented Oct 30, 2018

This happens all the time. But this time it's different. The URL is working https://cors-anywhere.herokuapp.com/ but the actual requests are corrupted.

@Rob--W
Copy link
Owner

Rob--W commented Oct 30, 2018

I started capturing the access logs almost 10 hours ago. Do you have a specific example of a failure?

The absence of CORS headers suggests that there may be an operational (server) issue.

@egfx
Copy link

egfx commented Oct 30, 2018

Did you start blocking requests from any particular sites? It seems this is a globally scoped problem.

@Rob--W
Copy link
Owner

Rob--W commented Oct 30, 2018

The latest status of blocks is in https://github.com/Rob--W/cors-anywhere/issues/129#issuecomment-433005558 . When blocked, the response is immediate and the status code is either 403 or 429.

503 after a timeout sounds like a resource problem (i.e. too many people trying to use the public demo). But I can only confirm whether that is the case if you provide a concrete example of a failure. I'm not going to capture the log forever, so please share an example if you can.

@egfx
Copy link

egfx commented Oct 30, 2018

I just tried right now. It's coming back as a 503 error. I don't think my particular payload is being blocked. I'm not sending more then 1 or 2 requests at a time.

@Rob--W
Copy link
Owner

Rob--W commented Oct 30, 2018

Please provide the exact URL and time. Otherwise I cannot investigate it.

@egfx
Copy link

egfx commented Oct 30, 2018

Any and all image URL's will result in the same 503. For example this picture @ 1:13pm PST https://cors-anywhere.herokuapp.com/https://i.imgur.com/4U89t5z.jpg

@Rob--W
Copy link
Owner

Rob--W commented Oct 31, 2018

Thanks, that helped! Apparently this is not an operational issue, but an application error (which probably happened when Node.js was bumped to the latest version in the latest update):

2018-10-30T13:33:33.662806+00:00 app[web.1]: _http_outgoing.js:464
2018-10-30T13:33:33.662810+00:00 app[web.1]: throw err;
2018-10-30T13:33:33.662811+00:00 app[web.1]: ^
2018-10-30T13:33:33.662813+00:00 app[web.1]: 
2018-10-30T13:33:33.662815+00:00 app[web.1]: TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["user-agent"]
2018-10-30T13:33:33.662817+00:00 app[web.1]: at ClientRequest.setHeader (_http_outgoing.js:473:3)
2018-10-30T13:33:33.662818+00:00 app[web.1]: at new ClientRequest (_http_client.js:193:14)
2018-10-30T13:33:33.662820+00:00 app[web.1]: at Object.request (http.js:41:10)
2018-10-30T13:33:33.662822+00:00 app[web.1]: at Array.stream (/app/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js:108:74)
2018-10-30T13:33:33.662823+00:00 app[web.1]: at ProxyServer.<anonymous> (/app/node_modules/http-proxy/lib/http-proxy/index.js:80:21)
2018-10-30T13:33:33.662825+00:00 app[web.1]: at proxyRequest (/app/lib/cors-anywhere.js:134:9)
2018-10-30T13:33:33.662827+00:00 app[web.1]: at Server.<anonymous> (/app/lib/cors-anywhere.js:396:5)
2018-10-30T13:33:33.662829+00:00 app[web.1]: at Server.emit (events.js:182:13)
2018-10-30T13:33:33.662830+00:00 app[web.1]: at parserOnIncoming (_http_server.js:652:12)
2018-10-30T13:33:33.662832+00:00 app[web.1]: at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)

I'll work on a fix.

@egfx
Copy link

egfx commented Nov 1, 2018

It was working for 24 hours and working prior to the fix. Now it's not working anymore 👎

NM It's working again. 👍

@Rob--W
Copy link
Owner

Rob--W commented Nov 1, 2018

Yesterday I pushed the update to this repository to run automated tests. Since all tests have passed, I have now published the changes to the public CORS Anywhere demo, which solves the problem.

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

3 participants