Hi, I'm having an issue with the `adminCreateSelfS...
# talk-kratos
l
Hi, I'm having an issue with the
adminCreateSelfServiceRecoveryLink
method in the V0alpha2Api Ory client. I've configured the client with the base url 'http://localhost:4433', the public port, and the admin port is running on 4434. The
adminCreateIdentity
method makes a request to 'http://kratos:4434/admin/identities', and the
adminCreateSelfServiceRecoveryLink
makes a request to 'http://localhost:4433/admin/recovery/link'. I'm confused by this because I can't figure out where its pulling kratos:4434 from, and the recovery link fails because it's not making a request to the admin port. They are both using the same client, initialised with
Copy code
new V0alpha2Api(new Configuration({
  basePath: '<http://localhost:4433>'
}));
The kratos.yml for my local kratos docker has the admin api set to 'http://kratos:4434' if somehow it is pulling from that Edit: Related https://github.com/ory/kratos/discussions/2812
Just tested and confirmed that the admin url is retrieved from the Kratos config for the
adminCreateIdentity
method but not for
adminCreateSelfServiceRecoveryLink