sdk: kratos Dart API client throws exception when calling /self-service/login/browser
Describe the bug
The kratos Dart API client tries to json decode the result of calling initializeSelfServiceLoginFlowForBrowsers (/self-service/login/browser). The problem is that endpoint returns an html page which is correct. The API client isn’t aware of this and throws a FormatException while it tries to deserialize the body.
To Reproduce
Steps to reproduce the behavior:
- Call function
V0alpha1Api.initializeSelfServiceLoginFlowForBrowsers. - Function throws an exception although the API response is correct.
Expected behavior
The function should not throw an error. I don’t know if it should be expected to also return some data from the response.
Environment
- Version: v0.7.1-alpha.1, git sha hash
- Environment: Docker
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (10 by maintainers)
Hello contributors!
I am marking this issue as stale as it has not received any engagement from the community or maintainers a year. That does not imply that the issue has no merit! If you feel strongly about this issue
Throughout its lifetime, Ory has received over 10.000 issues and PRs. To sustain that growth, we need to prioritize and focus on issues that are important to the community. A good indication of importance, and thus priority, is activity on a topic.
Unfortunately, burnout has become a topic of concern amongst open-source projects.
It can lead to severe personal and health issues as well as opening catastrophic attack vectors.
The motivation for this automation is to help prioritize issues in the backlog and not ignore, reject, or belittle anyone.
If this issue was marked as stale erroneous you can exempt it by adding the
backloglabel, assigning someone, or setting a milestone for it.Thank you for your understanding and to anyone who participated in the conversation! And as written above, please do participate in the conversation if this topic is important to you!
Thank you 🙏✌️