FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    I'm seeing a "cannot deserialize value of type ‘java.util.uuid’ from string" error when posting to /api/login

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    uuid login-api
    1
    2
    6.7k
    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.
    • danD
      dan
      last edited by

      I'm using a load testing tool and seeing the message "cannot deserialize value of type ‘java.util.uuid’ from string".

      Here's what I'm sending to FusionAuth:

      {
           "applicationId": 15e45e7d-3e34-43df-9366-91c66a8cc9ae,
           "loginId": "myuserid",
           "password": "mypassword"
      }
      

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        It looks like the uuid isn't being sent as a string. Per https://fusionauth.io/docs/v1/tech/reference/data-types#uuids it should be quoted.

        So you want to send:

        {
             "applicationId": "15e45e7d-3e34-43df-9366-91c66a8cc9ae",
             "loginId": "myuserid",
             "password": "mypassword"
        }
        

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

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