Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'baseURL') #3

Open
JohnCido opened this issue Sep 26, 2024 · 1 comment
Open

Comments

@JohnCido
Copy link

JohnCido commented Sep 26, 2024

Auth always fails (I've confirmed the envs are correctly passed):

await client.auth().universalAuth.login({
  clientId: process.env.SERVER_INFISICAL_CLIENT_ID,
  clientSecret: process.env.SERVER_INFISICAL_CLIENT_SECRET,
})

This are the trace related codes:

// 1
    const axiosRequestArgs = __spreadProps(__spreadValues({}, axiosArgs.options), { url: (axios2.defaults.baseURL ? "" : (_a = configuration == null ? void 0 : configuration.basePath) != null ? _a : basePath) + axiosArgs.url });
// 2
        return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
// 3
    return DefaultApiFp(this.configuration).apiV1AuthUniversalAuthLoginPost(requestParameters.apiV1AuthUniversalAuthLoginPostRequest, options).then((request) => request(this.axios, this.basePath));
@DanielHougaard
Copy link
Collaborator

Hi @JohnCido, I'm unable to reproduce this issue on my end. Are you using TypeScript? If yes, can you please share your tsconfig.json file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants