We are getting this error while trying to update a...
# ory-network
a
We are getting this error while trying to update a users metadata:
Copy code
[400] Client error: `PUT <https://auth.maxroll.gg/admin/identities/xxxx>` resulted in a `400 Bad Request` response:
{"error":{"code":400,"status":"Bad Request","request":"7f208dc8-258b-938c-b271-93f27f74e014","reason":"The imported pass (truncated...)
Any idea what this could be ?
s
can you give the full reason field?
a
Copy code
{
  "error": {
    "code": 400,
    "status": "Bad Request",
    "request": "a299c03a-3310-9b66-b59b-bd9a64501314",
    "reason": "The imported password does not match any known hash format. For more information see <https://www.ory.sh/dr/2>",
    "message": "The request was malformed or contained invalid parameters"
  }
}
we’re not modifying the password
just the metadata
s
but is the password included in the request? can you check whether it is set to
""
by default?
and is this happening just recently?
or always
a
From what I can see this has started failing since some time. it has worked at some point.
but my logs don’t go back that far, so I don’t know when it broke
just that it did
s
I'll take a look now
a
Thanks
s
hmm I guess it is a change in the php sdk
it should just not submit the credentials
or maybe you have to reset them before submitting?
set to null or whatever that is in php
a
Copy code
$identity->setCredentials(null);
?
oh wow that worked
Uhm, hope it doesn’t break anything. Let me try testing it with a OIDC user
No that indeed works!
hmm, maybe a good idea to address this or add it to the docs 🙂
thanks @steep-lamp-91158
s
nice, do you have a specific docs page in mind?