You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this returns the error: 400 Bad Request: failed to decode json error response payload: json: cannot unmarshal object into Go struct field authErrorWrapper.description of type string
Manually trying the operation via HTTP shows the real error:
Response body: {"name":"PasswordStrengthError","message":"Password is too weak","code":"invalid_password","description":{"rules":[{"message":"At least %d characters in length","format":[8],"code":"lengthAtLeast","verified":true},{"message":"Contain at least %d of the following %d types of characters:","code":"containsAtLeast","format":[3,4],"items":[{"message":"lower case letters (a-z)","code":"lowerCase","verified":true},{"message":"upper case letters (A-Z)","code":"upperCase","verified":false},{"message":"numbers (i.e. 0-9)","code":"numbers","verified":false},{"message":"special characters (e.g. !@#$%^&*)","code":"specialCharacters","verified":true}],"verified":false}],"verified":false},"policy":"* At least 8 characters in length\n* Contain at least 3 of the following 4 types of characters:\n * lower case letters (a-z)\n * upper case letters (A-Z)\n * numbers (i.e. 0-9)\n * special characters (e.g. !@#$%^&*)","statusCode":400}
I think this is a bug
Expectation
An error message that I can use to debug the issue
I wanted to let you know that we've successfully addressed the issue you raised. However, the fix hasn't been released just yet. I'm pleased to inform you that your PR has been merged #393 , and I want to express my gratitude for bringing it to our attention. Your contribution is greatly appreciated!
Checklist
Description
I'm creating a user programatically with the following code:
this returns the error:
400 Bad Request: failed to decode json error response payload: json: cannot unmarshal object into Go struct field authErrorWrapper.description of type string
Manually trying the operation via HTTP shows the real error:
I think this is a bug
Expectation
An error message that I can use to debug the issue
Reproduction
Auth0 Go SDK version
v1.4.0
The text was updated successfully, but these errors were encountered: