Jibbs
Jibbs
KKinde
Created by Jibbs on 3/28/2024 in #💻┃support
Trouble with createKindeManagementAPIClient.usersApi
Hi, I'm just starting with Kinde, and I'm trying to use the Users API. I've enabled the API in my environment, but when I add the following code, it errors out.
const kindeClient = await createKindeManagementAPIClient();
const kindeUsers = await kindeClient.usersApi.getUsers();
const kindeClient = await createKindeManagementAPIClient();
const kindeUsers = await kindeClient.usersApi.getUsers();
Error:
Unhandled Runtime Error

Error: Response returned an error code
Call Stack
new ResponseError
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (750:28)
UsersApi.<anonymous>
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (654:31)
step
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (169:23)
Object.next
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (110:20)
fulfilled
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (73:32)
process.processTicksAndRejections
node:internal/process/task_queues (95:5)
Unhandled Runtime Error

Error: Response returned an error code
Call Stack
new ResponseError
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (750:28)
UsersApi.<anonymous>
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (654:31)
step
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (169:23)
Object.next
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (110:20)
fulfilled
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (73:32)
process.processTicksAndRejections
node:internal/process/task_queues (95:5)
31 replies
KKinde
Created by Jibbs on 3/28/2024 in #💻┃support
Reducing log spam when user not logged in
Is there a way to suppress the error in the logs when accessing Kinde data when not logged in? I'm referring to Error: Cannot get user details, no authentication credential found.
2 replies