TradingView-API icon indicating copy to clipboard operation
TradingView-API copied to clipboard

Login error: Please confirm that you are not a robot by clicking the captcha box

Open qrq opened this issue 11 months ago • 3 comments

i get : The maximum number of studies per chart has been reached for current subscription hkg*-charts--webchart-@hkg-compute- when i try to login by code :

TradingView.loginUser("userid", "pass", false).then((user) => { console.log('User:', user); console.log('Sessionid:', user.session); console.log('Signature:', user.signature); }).catch((err) => { console.error('Login error:', err.message); });

i get captcha err

Login error: Please confirm that you are not a robot by clicking the captcha box.

qrq avatar Jan 06 '25 08:01 qrq

@Mathieu2301 !!

qrq avatar Feb 03 '25 06:02 qrq

@qrq heres a solution if you need it in the meantime

https://github.com/Mathieu2301/TradingView-API/issues/222#issuecomment-1871977425

const client = new Client({
    token: "<sessionid>",
    signature: "<sessionid_sign>",
  });

cheers

upuxaa avatar Feb 04 '25 20:02 upuxaa

@upuxaa i try this before it work in local host but not work with heroku when i upload project , the ssid look like changed or trading view block heroku ip , any one have idea ?

qrq avatar Feb 06 '25 06:02 qrq