Hi all, I am integrating ory sdk in my ruby projec...
# talk-kratos
f
Hi all, I am integrating ory sdk in my ruby project using
ory-kratos-client
I set configuration like this
Copy code
OryKratosClient.configure do |config|
      config.scheme = "http"
      config.host = "localhost:4000"
      config.base_path=""
      config.debugging = true
    end
And call endpoint for recovery flow
Copy code
api_instance = OryKratosClient::V0alpha2Api.new

    begin
      result = api_instance.initialize_self_service_recovery_flow_for_browsers
      p result
    rescue OryKratosClient::ApiError => e
      puts e
    end
But I get error
Copy code
Calling API: V0alpha2Api.initialize_self_service_recovery_flow_for_browsers ...
<url> malformed
Closing connection -1
ETHON: performed EASY effective_url=/self-service/recovery/browser response_code=0 return_code=url_malformat total_time=0.0
HTTP response body ~BEGIN~

~END~

URL using bad/illegal format or missing URL
HTTP status code: 0
Anyone can help me how to configure with
ory-kratos-client
?
p
Hi @fierce-toothbrush-41957 I think you need to set
baseURL
or
basePath
to localhost:4000 (ory tunnel)
f
Thanks, let me check