-
-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: type ErrorBrowserLocationChangeRequired #3397
base: master
Are you sure you want to change the base?
fix: type ErrorBrowserLocationChangeRequired #3397
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3397 +/- ##
=======================================
Coverage 78.33% 78.33%
=======================================
Files 346 346
Lines 23551 23551
=======================================
Hits 18448 18448
Misses 3710 3710
Partials 1393 1393 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is correct - genericError
is a legacy type. What issues are you observing?
not properly an issue, just that the error looks like this: instead of the other errors:
meaning I cannot handle it like the others |
Could you please share the full error and the API you used to get it? |
I use the @ory/kratos-client v0.13.1. Actually, don't know how to trigger this error ErrorBrowserLocationChangeRequired, if you tell me I can try. But I can just say the structure is not equivalent to other errors as described above. Meaning we need specific code to handle it. |
I trigger the error by submitting a login flow with social login and a header Accept set to application/json.
The error looks ok but the structure doesn't fit the Model. Actual response:
Model - https://www.ory.sh/docs/kratos/reference/api#tag/frontend/operation/updateLoginFlow :
|
Is there anything blocking this PR being merged? It would be great to have this fixed in the next kratos release. |
Related issue(s)
ory/sdk#277
Type of 'error' should be GenericError instead of ErrorGeneric
kratos/internal/httpclient/model_error_browser_location_change_required.go
Line 20 in 53080b0
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got the approval (please contact
[email protected]) from the maintainers to push
the changes.
works.
Further Comments