Comments (4)
Haha it's okay @danielschleindlsperger
Ah I see, thanks again ! 👍
from github-langs.
how to fix this
(node:12138) UnhandledPromiseRejectionWarning: Error: Request failed with status code 409
at createError (/root/node_modules/axios-https-proxy-fix/lib/core/createError.js:16:15)
at settle (/root/node_modules/axios-https-proxy-fix/lib/core/settle.js:18:12)
at IncomingMessage.handleStreamEnd (/root/node_modules/axios-https-proxy-fix/lib/adapter
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1221:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:12138) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error origit handled with .catch(). To terminate the node process on unhandled promise rejection, use trejection id: 220)
from github-langs.
Hi @danielschleindlsperger, thanks for the answer. Sadly, even I edited my code, still doesn't work. So do you think axios
only provide https proxy?
from github-langs.
Hey @wildan3105! I got cold feet and deleted my answer 😅 , here's my changed code which works with a free proxy.
const axios = require('axios-proxy-fix');
const proxy = {
host: '46.163.119.138',
port: 3128,
}
axios.get('http://wildan.us', {proxy})
.then((res) => {
console.log(res);
})
.catch((err) => {
console.log(err);
});
Note that proxy
is the key of a config object passed to axios.
Apparently axios is having some problems with this right now (referenced here: axios/axios#925).
One comment says to use the axios-proxy-fix
package until they fix this which works for me.
from github-langs.
Related Issues (20)
- Cannot accessing the app on normal browsing mode HOT 6
- Watch changes file SCSS HOT 3
- Links on 404 not found page are not clear enough HOT 6
- [Open for suggestion] What's next for github-langs HOT 2
- Differentiate between original & forked repositories HOT 2
- [Help needed] add unit test for utils: chart.js HOT 9
- [Help needed] add unit test for utils: social.js
- [Help needed] add unit test for util: spinner.js HOT 2
- Better code structure HOT 2
- Preview URL upon Pull Request creation
- Functionality test cases
- Heroku starts charging the app; let's move to the another cloud platform HOT 2
- Upgrade node to the LTS version HOT 1
- `npm start` produces public/css/screen/base.min.css differently each time HOT 1
- Update badges HOT 1
- Can't browse the repositories from each language
- Separate `frontend` and `backend` directory
- Change to auth request instead of `client_id` and `client_secret` HOT 1
- Differentiate between `personal` and `org` when browsing repositories
- Graceful handle for big data being fetched HOT 1
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 github-langs.