Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
315 views
in Technique[技术] by (71.8m points)

node.js - Why I can acces to url from browser but from node(axios.get) getting 403 error (API)

I am getting 403 forbidden error when trying to access to this API : https://indodax.com/api/ticker_all

here is the code (simple)

axios.get('https://indodax.com/api/btc_idr/ticker') .then(data => console.log)

I even added some headers but it wouldn't help exapmple: User-Agent: Mozilla/4.0

Thank you.

question from:https://stackoverflow.com/questions/65952967/why-i-can-acces-to-url-from-browser-but-from-nodeaxios-get-getting-403-error

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I had similar error since yesterday 28-01-2021 @19.52 GMT+7, my trading server cannot access the IndoDax API URL https://indodax.com/api/ and https://indodax.com/tapi/

According to IndoDax API Manual in Troubleshooting section here's what you need to do:

I'm getting 403 Unauthorized or 403 Forbidden error.

Our firewall often too aggressive and it creates false positive for genuine requests. Please send your IP addresses to our customer service so we can manually unblock your IPs

I've send the request email to add the IP exclusion for my IP address so my server can access IndoDax API server a few minutes ago. But until now there is no reply from IndoDax, maybe it's weekend, and I will wait until monday or so before I try to call their office.

Their support email address is support [at] indodax [dot] com as listed on their main website page.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...