Navigation

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

    ๐Ÿ”ด Urgent: TOTP Invalid (AB1050) โ€” Code Matches Google Authenticator but Login Fails

    General Discussion
    2
    2
    7
    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.
    • S
      S565246 last edited by

      Hi,

      My Python-generated TOTP matches exactly with my Google Authenticator code, but SmartAPI login always fails with:

      "status": false,
      "message": "Invalid totp",
      "errorcode": "AB1050"

      Details:

      Client ID: S565246

      Python SDK (pyotp)

      .env secret exactly as provided, no spaces, uppercase, Base32

      PC time synced with NTP

      Tested within 2โ€“3 seconds of code refresh

      Same result on multiple attempts

      I suspect there may be a server-side TOTP validation issue or a recent change in the secret format.
      Please check my accountโ€™s recent login attempts and confirm the current expected TOTP secret format.

      This is blocking all automated logins.
      Thanks in advance!

      T 1 Reply Last reply Reply Quote 0
      • T
        TestApi @S565246 last edited by TestApi

        @s565246 Hey there,

        I suggest you to print all your environment variables.

        After printing you should get your credentials. Check those credentials especially username.

        FYI, if there is any value stored in variable named "username" (ignore the case sensitivity) , the environment variable references it as username (this is somewhere used in your pc already) , which usually it is "admin".

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