Uncaught (in promise) TypeError: conn is null runScript
-
Uncaught (in promise) TypeError: conn is null
runScript http://127.0.0.1/tradingangel/js/socket.js:72
<anonymous> http://127.0.0.1/tradingangel/index.php:18
promise callback* http://127.0.0.1/tradingangel/index.php:16 -
@butanikartik1108 Hello, can you solve it?
-
@admin okay
-
HI @butanikartik1108 We will update you on this soon.
-
@admin yes
-
HI @butanikartik1108 Have you passed the feed token?
-
-
HI @butanikartik1108 post your web socket code here.
-
@admin [{"ak":"nk","task":"mw","msg":"mw"}]
-
hi @butanikartik1108 Kindly send us your response which you got. Also at what time you tried to get the data..?
-
This post is deleted! -
@admin I'm done with it. but last price is not came
-
HI @butanikartik1108 Kindly go through the below documentation
https://smartapi.angelbroking.com/docs/WebSocketStreaming -
@admin Ya issue is solved but I can't get the last price. I got only [{"ak":"nk","task":"mw","msg":"mw"}] array as per your documentation You send below array
[{"ak":"ok","task":"mw","msg":"mw"}]
[{"lo":"1797.55","ts":"ACC-EQ","tp":null,"ltp":"1800.05","ltq":"27","bs":"16","tk":"22","ltt":"31/08/2017 11:32:01","lcl":null,"tsq":"76435","cng":"-11.15","bp":"1800.00","bq":"510","mc":"34012.01277(Crs)","isdc":"18.77872(Crs)","name":"sf","tbq":"76497","oi":null,"yh":"1801.25","e":"nse_cm","sp":"1800.90","op":"1814.00","c": "1811.20",
"to":"145093696.35","ut":"31-Aug-2017 11:32:01","h":"1817.55","v":"80391","nc":"- 00.62","ap":"1804.85","yl":"1800.00","ucl":null,"toi":"16654000" }] -
HI @butanikartik1108 This issue has been resolved.Let us know If you have any other issue.
-
@admin said in Uncaught (in promise) TypeError: conn is null runScript:
It is hard to evaluate the issue kindly post the snip of issue
Socket.js file download on your Github repo
-
Hi @butanikartik1108 It is hard to evaluate the issue kindly post the snip of issue.
-
This Error I Got In Google Chome
Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at websocket.runScript (http://localhost/ishanbhai/tradingangel/js/socket.js:72:21)
at http://localhost/ishanbhai/tradingangel/:18:13