[Huobi] 403 Forbidden
See original GitHub issueHi fellows, since today I can’t get huobi endpoints, maybe they changed something.
- CCXT version: ccxt@1.72.37
Here is a sample request, that I am able to execute successfully in chrome. I suppose there is some header problem.
fetch Request:
huobi GET https://api.huobi.pro/v2/reference/currencies
RequestHeaders:
{
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36'
}
RequestBody:
undefined
handleRestResponse:
huobi GET https://api.huobi.pro/v2/reference/currencies 403 Forbidden
ResponseHeaders:
{
'Cache-Control': 'private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0',
'Cf-Chl-Bypass': '1',
'Cf-Ray': '6d9d78e85aea410d-PRG',
Connection: 'close',
'Content-Encoding': 'gzip',
'Content-Type': 'text/html; charset=UTF-8',
Date: 'Mon, 07 Feb 2022 14:57:43 GMT',
'Expect-Ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
Expires: 'Thu, 01 Jan 1970 00:00:01 GMT',
'Permissions-Policy': 'accelerometer=(),autoplay=(),camera=(),clipboard-read=(),clipboard-write=(),fullscreen=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()',
Server: 'cloudflare',
'Transfer-Encoding': 'chunked',
Vary: 'Accept-Encoding',
'X-Frame-Options': 'SAMEORIGIN'
}
ResponseBody:
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Attention Required! | Cloudflare</title>
<meta name="captcha-bypass" id="captcha-bypass" />
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
<style type="text/css">body{margin:0;padding:0}</style>
...
Could you please check from your side? Thanks
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Huobi Trading Center "403 Forbidden"
Hi, I'm getting error "403 Forbidden" in Huobi's trading center ( https://www.huobi.com/trade/cny_btc and https://www.huobi.com/trade/usd_btc ) ...
Read more >Change Log – Huobi API Reference v1.0 - GitHub Pages
Release Time (UTC +8) API New / Update
2022.06.24 POST /v2/sub‑user/api‑key‑generation update
2022.06.17 POST /v1/dw/withdraw/api/create update
2022.01.21 GET v1/common/symbols , GET v1/common/currencys Update
Read more >Huobi REST API - signing requests - Verification failure
I have problem with Huobi (cryptoexchange) REST API request-signing. ... I have searched thru many code-examples and no error found.
Read more >Huobi Global is going to optimize the error message while ...
Dear API users,To enhance user experience , Huobi Global is going to optimize the error message while order cancellation fails.Effective Date:September 19, ...
Read more >Introduction – Huobi USDT Margined Contracts API ...
403, invalid ID. 1000, System error. 1001, System is unprepared. 1002, Query error. 1003, Abnormal redis operation. 1004, System busy.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I confirm, they fixed it. Thanks for your support
Yup, issue have been resolved. Thanks all.