Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    AG8001

    General Discussion
    0
    12
    98
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Vindhy last edited by

      What is happening here? Can you guys not even maintain a basic documentation. So many users are facing this challenge. I am getting this error: {"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""}

      Client ID - V55059652

      Please resolve it at its earliest and respond back

      M 1 Reply Last reply Reply Quote 1
      • M
        Moderator_2 @Vindhy last edited by

        Hi @Vindhy

        Apologies for delayed response.
        "Invalid Token" occurs while request initiated with expired/unauthorized token on any smartAPI. We expect the client to login everyday to consume the provided APIs.
        Kindly pass the recently fetched token via API and Please share us the API request, and header passed to analyze further if the issue still occurs.

        Thanks & Regards,
        SmartAPI team

        A 1 Reply Last reply Reply Quote 0
        • A
          A51440435 @Moderator_2 last edited by

          @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.

          M 1 Reply Last reply Reply Quote 0
          • M
            Moderator_2 @A51440435 last edited by

            Hi @A51440435

            Apologies for the delayed response. Kindly share us the client code/API request and issue timing to analyze on this matter

            Regards,
            SmartAPI team

            A 1 Reply Last reply Reply Quote 0
            • A
              A51440435 @Moderator_2 last edited by A51440435

              @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.

              M 1 Reply Last reply Reply Quote 0
              • M
                Moderator_2 @A51440435 last edited by

                Hi @A51440435

                Apologies for your trouble. Is there any specific API, "Invalid Token" issue has been faced. Please let us know

                Regards,
                SmartAPI team

                A 2 Replies Last reply Reply Quote 0
                • A
                  A51440435 @Moderator_2 last edited by A51440435

                  @Moderator_2

                  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

                  1 Reply Last reply Reply Quote 0
                  • A
                    A51440435 @Moderator_2 last edited by

                    @Moderator_2
                    No Reply ? Angel is not interested. 😞

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Moderator_1 @A51440435 last edited by

                      Hello @A51440435,

                      Apologies for the delay. We have raised this issue to our tech team and will get back to you.

                      Thank you.
                      Regards
                      SmartAPI Team

                      1 Reply Last reply Reply Quote 0
                      • V
                        vishalwe last edited by

                        Hi Team , I am getting below error ... Could you please resolve it out Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

                        userId: V59123614

                        1 Reply Last reply Reply Quote 0
                        • D
                          Deepa last edited by

                          {"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""} for user id: S60677944. Please resolve.

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            Moderator_3 @Deepa last edited by

                            Hello @Deepa

                            "Invalid Token" occurs while request initiated with expired/unauthorized token on any smartAPI. We expect the client to login everyday to consume the provided APIs.
                            Kindly pass the recently fetched token via API and Please share us the API request, and header passed to analyze further if the issue still occurs.

                            Regards,
                            SmartAPI Team

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post