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

Uploading Profile Image Throws Null error

Scheduled Pinned Locked Moved
General Discussion
2
2
417
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.
  • O
    orrett
    last edited by 4 Feb 2022, 02:57

    So I recently updated to the latest docker image of Fusionauth. Currently experiencing the following error when I attempt to upload a user profile imageUrl.

    "error": null,
    

    The relevant code is as follows:

    data = {
                'user': {
                    'imageUrl': profile_photo,
                    'email': FusionAuth.get_email()
                }
            }
            upload_image = current_app.faclient.patch_user(
                FusionAuth.get_user_id(),
                data
            )
            user = UserModel.get_one_user(FusionAuth.get_user_id())
            user.update(data)
            if upload_image.was_successful():
                return {'image_url': data['user']['imageUrl']}, 201
            else:
                return {'error': upload_image.success_response}, 401
    

    This was working prior to the upgrade. Also the rest of the endpoints are working including login, logout and get user. but for whatever reason this endpoint patch_user, does not work.

    D 1 Reply Last reply 17 Feb 2022, 03:09 Reply Quote 0
    • D
      dan @orrett
      last edited by 17 Feb 2022, 03:09

      @orrett What version did you upgrade from and what version did you upgrade to? This may be a regression and if so we'd love to know about it.

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

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