fierce-toothbrush-41957
08/16/2022, 10:24 AMory-kratos-client
I set configuration like this
OryKratosClient.configure do |config|
config.scheme = "http"
config.host = "localhost:4000"
config.base_path=""
config.debugging = true
end
And call endpoint for recovery flow
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
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
?proud-plumber-24205
08/16/2022, 2:46 PMbaseURL
or basePath
to localhost:4000 (ory tunnel)fierce-toothbrush-41957
08/16/2022, 2:49 PM