Client requests use incomplete URL resulting in failure
Open
@vinckr is already working on this.
Since Nov 1, 2022.
area/docs
bug
- Dominant language
- Ruby
- Stars
- 8
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Cloud project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Describe the bug
Ruby SDK does not properly generate a request URL, leaving out scheme and hostname. The http client library, Typhoeus, is unable to attempt the request because of this.
Reproducing the bug
Make a registration flow request using the SDK as documented. See relevant log output. Note the effective_url should include a scheme and hostname as well. The answer is somewhere near this URL builder in the generated code.
Relevant log output
Processing by Kratos::RegistrationController#index as */*
Parameters: {"flow"=>"87e5fcbd-0ae4-44c6-9720-cf516bad181c"}
Calling API: V0alpha2Api.get_self_service_registration_flow ...
Closing connection -1
ETHON: performed EASY effective_url=/self-service/registration/flows?id=87e5fcbd-0ae4-44c6-9720-cf516bad181c response_code=0 return_code=url_malformat total_time=0.0
HTTP response body ~BEGIN~
~END~
Error when calling Kratos V0alpha2Api->get_self_service_registration_flow: URL using bad/illegal format or missing URL
HTTP status code: 0
Relevant configuration
No response
Version
0.8.0.alpha2
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Docker Compose
Additional Context
I've also tested version 0.7.6.alpha7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.