ory / ory/kratos-client-ruby

Client requests use incomplete URL resulting in failure

Open
#3 7 comments 0 reactions 2 assignees View on GitHub

@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
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.