@admin
updated the SDK but still issue is there. Though the exception is not there but it stays disconnected. Following is console output
onDisconnected
onConnected
onDisconnected
@admin
updated the SDK but still issue is there. Though the exception is not there but it stays disconnected. Following is console output
onDisconnected
onConnected
onDisconnected
Websocket connection works fine for some times, get ticks successfully for sometime but it gets disconnected after a while with below exception. it don't reconnect again . Can you please help to get it fixed ,
com.neovisionaries.ws.client.HostnameUnverifiedException: The certificate of the peer does not match the expected hostname (omnefeeds.angelbroking.com)
onError: The certificate of the peer does not match the expected hostname (omnefeeds.angelbroking.com)
at com.neovisionaries.ws.client.SocketConnector.verifyHostname(SocketConnector.java:171)
at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:126)
at com.neovisionaries.ws.client.SocketConnector.connect(SocketConnector.java:83)
at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2152)
at com.angelbroking.smartapi.ticker.SmartAPITicker.connect(SmartAPITicker.java:222)
at com.angelbroking.smartapi.ticker.SmartAPITicker.reconnect(SmartAPITicker.java:379)
at com.angelbroking.smartapi.ticker.SmartAPITicker.doReconnect(SmartAPITicker.java:124)
at com.angelbroking.smartapi.ticker.SmartAPITicker$1.run(SmartAPITicker.java:97)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)
com.neovisionaries.ws.client.HostnameUnverifiedException: The certificate of the peer does not match the expected hostname (omnefeeds.angelbroking.com)
at com.neovisionaries.ws.client.SocketConnector.verifyHostname(SocketConnector.java:171)
at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:126)
at com.neovisionaries.ws.client.SocketConnector.connect(SocketConnector.java:83)
at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2152)
at com.angelbroking.smartapi.ticker.SmartAPITicker.connect(SmartAPITicker.java:222)
at com.angelbroking.smartapi.ticker.SmartAPITicker.reconnect(SmartAPITicker.java:379)
at com.angelbroking.smartapi.ticker.SmartAPITicker.doReconnect(SmartAPITicker.java:124)
at com.angelbroking.smartapi.ticker.SmartAPITicker$1.run(SmartAPITicker.java:97)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)
onE
How do I get the value of feedtoken for Websocket call.
it is not populated generateSession is success ( it returns accessToken & other fields but feedToken is coming null)
@admin said in Error at login API - "YOUR USER ID OR PASSWORD IS INVALID":
migration initiated. We will send a message here post migration.
Thanks a lot , I am able to login now
As per the comments in Examples code it is mentioned that we can fetch LTP of multiple instruments in one call. But as per API parameters input, there seems to be no such option. Can you please let me know which parameters need to be passed to do that .
Thanks & Regards
Getting error while calling getLTP
passing input
String exchange = "BSE";
String tradingSymbol = "SBIN-EQ";
Tried with some other options like trading symbol as "SBIN" with exchange as "NSE" as well as "BSE"
Non of the combinations worked. below is the stack trace
SmartAPIException [message=Symbol Not Found, code=AB1009]
at com.angelbroking.smartapi.http.SmartAPIResponseHandler.dealWithException(SmartAPIResponseHandler.java:77)
at com.angelbroking.smartapi.http.SmartAPIResponseHandler.handle(SmartAPIResponseHandler.java:31)
at com.angelbroking.smartapi.http.SmartAPIRequestHandler.postRequest(SmartAPIRequestHandler.java:101)
at com.angelbroking.smartapi.SmartConnect.getLTP(SmartConnect.java:419)
at com.angelbroking.smartapi.sample.Examples.getLTP(Examples.java:103)
at FetchMarketPrice.main(FetchMarketPrice.java:63)
@bhaveshjain
I too have the same issue getting the following error
{"data":null,"message":"Login Id or password is invalid","errorcode":"AB1007","status":false}
My client_code is S498394
Getting Error on connecting through smartConnect.generateSession : Cannot read the array length because "mac" is null
The error is coming in file SmartAPIRequest in method createPostRequest()
at following line
// MAC Address
NetworkInterface network = NetworkInterface.getByInetAddress(localHost);
byte[] mac = network.getHardwareAddress();
More details :
I am running this code on local machine ( ubuntu 20.10)
Please advice what could be the issue.