Navigation

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

    'errorcode': 'AB1004'

    General Discussion
    0
    6
    44
    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
      vegybin last edited by

      Please look into this : {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}

      I have to move forward!
      Account Id J219541.

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

        Hi @vegybin

        Apologies for the delayed response.
        Please share us the API request along with header parameter to analyze further on the issue

        Thanks & Regards
        SmartAPI team

        V 2 Replies Last reply Reply Quote 0
        • V
          vegybin @Moderator_2 last edited by

          @Moderator_2 said in 'errorcode': 'AB1004':

          Please share us the API request along with header parameter to analyze further on the issue

          This is the payload and header. Please check out the code and fix this issue. Its too frustrating.

              payload = '''{
                              "clientcode": "''' + CLIENT_ID + '''",
                              "password": "''' + CLIENT_PIN + '''",
                              "totp": "''' + TOTP.now() + '"}'
          
              headers = {
                  'Content-Type': 'application/json',
                  'Accept': 'application/json',
                  'X-UserType': 'USER',
                  'X-SourceID': 'WEB',
                  'X-ClientLocalIP': 'CLIENT_LOCAL_IP',
                  'X-ClientPublicIP': 'CLIENT_PUBLIC_IP',
                  'X-MACAddress': 'MAC_ADDRESS',
                  'X-PrivateKey': API_KEY
              }
              conn.request(
                  "POST",
                  "/rest/auth/angelbroking/user/v1/loginByPassword",
                  payload,
                  headers)
          
          1 Reply Last reply Reply Quote 0
          • V
            vegybin @Moderator_2 last edited by

            @Moderator_2 help

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

              Hi @vegybin

              Apologies for the delayed response.
              We are verifying on the issue, will update you as soon as possible.

              Regards,
              SmartAPI team

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

                Hi @vegybin,

                Please note that there is a syntax error in your code. In the payload section, you have not used quotes properly.

                Please follow the guidelines as given in the documentation (here)[https://smartapi.angelbroking.com/docs/User]

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