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

Can't load indicator - (Study error: Study not allowed in this connection)

Open royalbrawler opened this issue 2 years ago • 10 comments

Describe the bug Im getting the "onError" event triggered when loading a Public Indicator with - "TradingView.getIndicator()".

Study error: Study not allowed in this connection ams1-charts-22-webchart-1@ams1-compute-22 Study error: [ 'Study not allowed in this connection',
'fra2-charts-34-webchart-13@fra2-compute-34' ]

To Reproduce you can reproduce the Error with the [GraphicIndicator.js] in the /examples folder

Environment:

  • tried on Node 16.x (on the server) and on Node 19.x (on the pc)

Additional context Used to work fine until today.. Most likely tradingview changed something on their side (api) ?

royalbrawler avatar Mar 09 '23 13:03 royalbrawler

I am having same issue as well, the issue started to happen just today.

kabaogluemre avatar Mar 09 '23 13:03 kabaogluemre

Having the same issue

thermohaline avatar Mar 09 '23 13:03 thermohaline

Got the same error top since today. Any idea how to fix this? :-(

FuturesTr4der avatar Mar 09 '23 13:03 FuturesTr4der

Hey trader fellas, I found a temporary fix that works on my side (in my use cases).

just change this 228 line in client.js from this.#ws = new WebSocket(wss://${server}.tradingview.com/socket.io/websocket, { to this.#ws = new WebSocket(wss://${server}.tradingview.com/socket.io/websocket?&type=chart, {

royalbrawler avatar Mar 09 '23 14:03 royalbrawler

Worked for me! Appreciate it good sir

thermohaline avatar Mar 09 '23 14:03 thermohaline

Worked for me as well, thanks !

kabaogluemre avatar Mar 09 '23 19:03 kabaogluemre

For me too, thanks ;)

FuturesTr4der avatar Mar 09 '23 19:03 FuturesTr4der

me too, thanks 👍🏼

qrq avatar Mar 11 '23 05:03 qrq

This bug seems to be back. I changed line 228 but now get 'Study not allowed in this connection nje1-charts-30-webchart-10@nje1-compute-30'

lordbritish888 avatar Mar 28 '23 05:03 lordbritish888

This bug seems to be back. I changed line 228 but now get 'Study not allowed in this connection nje1-charts-30-webchart-10@nje1-compute-30'

Pull the main man, they fixed

apocoder avatar Mar 29 '23 11:03 apocoder