@A51440435 Here is the link for my project -> link text -https://github.com/Josh1-rtd/AngelBroking-smartapi-dotnet-ConsoleApp
A51440435
@A51440435
Best posts made by A51440435
-
RE: AG8001 Invalid Token
Latest posts made by A51440435
-
RE: AG8001
Yes. This issue is faced in GetProfileResponse. I have created the application specifically for connecting to Websocket Version 2. After generating token, I am calling GetProfileResponse to check whether login happened properly. However I get error and app gets stuck. I have not tried any other api. It appears that you have not seen my code on Github for which I have given link in my earlier post. I am giving the link again https://github.com/Josh1-rtd/AngelBroking-smartapi-dotnet-ConsoleApp
-
RE: AG8001
@Moderator_2
My Client Code is A51440435. Please elaborate on (API request and issue timing ) . I have one working code here. Click here.It works well as standalone console application. However it starts giving AG8001 Invalid Token error when I enable Windows Forms and add code for a gui around it. This same code for login copy/pasted as is into another application on the same laptop does not work for login. This error started coming when I completed the whole application for feeding Websocket stream to Amibroker. I am really frustrated and thinking of giving up on Angel.
-
RE: AG8001
@Moderator_2 I am also getting same error randomly. I created new topic in general discussion with reference to working code. There is no reply. It seems, Angleone is not interested in servicing customers.
-
RE: AG8001 Invalid Token
@A51440435 Here is the link for my project -> link text -https://github.com/Josh1-rtd/AngelBroking-smartapi-dotnet-ConsoleApp
-
AG8001 Invalid Token
Re: AG8001
I have developed code in C# dotnet for connecting to SmartAPI Websocket version 2. The code always works well as long as it is a console app. However, it starts giving me AG8001 Invalid Token error after enabling windows forms in the App. The error occurs randomly. The same windows app may not give the error next day.
I tried all tricks. I save the tokens in text file after generating them and read them on next login. It works well in console app. If the token is expired, I can generate new token any number of times in console.
However, on the same laptop when I copy/paste the exact same code in another C# app, it behaves erratic. Console application on the laptop runs properly but the same code copied into another app on the same laptop starts giving AG8001 error.
I am frustrated with this behavior of Angel. Moreover, there is no information from server which can help to debug the error.