Comments (7)
i am using https://cors-anywhere.herokuapp.com/ with port 443. I get "Not found because of proxy error: Error: connect ECONNREFUSED" when not using port 443
from cors-anywhere.
How to reproduce? curl https://cors-anywhere.herokuapp.com/
gives a succesful response.
from cors-anywhere.
https://cors-anywhere.herokuapp.com/api.bufferapp.com/1/profiles.json?access_token=[for security purposes I emailed you this]
I performed a GET request and got: "Not found because of proxy error: Error: connect ECONNREFUSED." Note that I successfully made that request via JSONP.
from cors-anywhere.
Reproduced error on the live server.
When I launch a local instance of Cors Anywhere (on localhost:8080, node server.js
), the API call completes successfully.
When I create a new Heroku instance, the API call also works as intended.
Did you make an excessive number of API calls to buffer? Perhaps they've (temporarily) blocked my server.
Try out https://cors-anywhere-eu.herokuapp.com/. The source code is identical to cors-anywhere.herokuapp.com, but it's hosted in Europe instead of the US. To try out:
- Visit https://robwu.nl/cors-anywhere.html.
- Open the JavaScript console and set
cors_api_url = 'http://cors-anywhere-eu.herokuapp.com/';
- Paste the URL in the textbox at the top and click on GET.
from cors-anywhere.
Ok, that does indeed work. When I use the European server in Fiddler, however, I still get the error (Not found because of proxy error: Error: connect ECONNREFUSED). Do you have any idea why this happens?
from cors-anywhere.
It appears that the Buffer API cannot be accessed over http. Calling the Buffer API without any proxies also results in an error if you use http:
$ curl -vv 'http://api.bufferapp.com/1/profiles.json?access_token=[api key here]' -H 'X-Requested-With: Whatever'
* Hostname was NOT found in DNS cache
* Adding handle: conn: 0x7ca560
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7ca560) send_pipe: 1, recv_pipe: 0
* Trying 54.225.178.31...
* connect to 54.225.178.31 port 80 failed: Connection refused
* Failed to connect to api.bufferapp.com port 80: Connection refused
* Closing connection 0
curl: (7) Failed to connect to api.bufferapp.com port 80: Connection refused
To solve the problem, don't omit the scheme (https) and use the full URL.
https://cors-anywhere-eu.herokuapp.com/https://api.bufferapp.com/1/profiles.json?access_token=[api key here]
from cors-anywhere.
That works! I think they changed something recently since I used to be able to use a proxy without adding the scheme. Nevertheless, I appreciate your help.
from cors-anywhere.
Related Issues (20)
- blacklist/whitelist specific domain endings HOT 1
- Does not work in Deno (TypeError on every request) HOT 1
- 400 Bad Request HOT 1
- Update HTTP-Proxy to 1.18.1 to resolve https://github.com/advisories/GHSA-6x33-pw7p-hmpq HOT 1
- Redirects ruining GET parameters using axios HOT 2
- how to block specific final link not origin
- cors-anywhere doesn't work with youtube m3u8 files HOT 1
- Error creating app on Heroku website HOT 2
- API domain name resolution problem HOT 1
- performance problem, cors-anywhere doesn't use outbound HTTP keep-alive HOT 1
- s anywhere
- Question about whitelisting HOT 1
- getting an Uncaught (in promise) SyntaxError HOT 1
- Authorization error HOT 1
- Whitelisting subdomain doesn't work as expected
- see the CI test #271 #273
- cors anywhere not working on vercel HOT 1
- add option to add auth header for sites like reddit HOT 1
- Siteye kurulum
- live radio use case: Missing required request header. Must specify one of: origin,x-requested-with HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cors-anywhere.