FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. yet
    Y
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    yet

    @yet

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    yet Unfollow Follow

    Latest posts made by yet

    • Generated api key not an UUID but required in Python client

      I am playing with FusionAuth and created some API keys:

      Bildschirmfoto 2020-05-04 um 18.59.15.png

      The Python client seems to require a valid UUID a api key since the following code does not work (taken from the Python client examples):

      
      client = FusionAuthClient('4zs15CcJJsczlYjeL62bltfbsqbxMZp4m43epG56gsA', 'http://127.0.0.1:9011')
      
      user_request = {
          'sendSetPasswordEmail': False,
          'skipVerification': True,
          'user': {
              'email': 'art@vandaleyindustries.com',
              'password': 'password'
          }
      }
      
      client_response = client.create_user(None, user_request)
      

      The API return this

      {'error_response': {'fieldErrors': {'user': [{'code': '[missing]user', 'message': 'Your request is missing the User information as JSON in the entity-body.'}], 'userId': [{'code': '[couldNotConvert]userId', 'message': "Invalid userId on the URL [{'sendSetPasswordEmail': False, 'skipVerification': True, 'user': {'email': 'art@vandaleyindustries.com', 'password': 'password'}}]. This must be a valid UUID String (e.g. 25a872da-bb44-4af8-a43d-e7bcb5351ebc)."}]}}, 'exception': None, 'response': <Response [400]>, 'success_response': None, 'status': 400}
      
      

      The error is obviously This must be a valid UUID String but why does not FusionAuth create a proper UUID? Even creating a new API key with my own provided UUID causes the same issue...anything I am missing here?

      posted in Q&A
      Y
      yet