K
Kinde7mo ago
9M6

Details Update Propagation takes too much time

Hello, I've noticed an issue, when I update an organisation (org name), and right after I do a fetch, the endpoint (management api) returns the old name, but when I call it after 1-2 seconds it returns the correct name. Is this latency common with all the APIs?
7 Replies
Oli - Kinde
Oli - Kinde7mo ago
Hey @9M6, What SDK are you using?
9M6
9M6OP7mo ago
Hey @Oli - Kinde I'm using the new Management API SDK
9M6
9M6OP7mo ago
GitHub
GitHub - kinde-oss/management-api-js: javascript package for intera...
javascript package for interacting with the Kinde Management API - kinde-oss/management-api-js
9M6
9M6OP7mo ago
hey @Daniel_Kinde I'm getting these errors randomly when I use management api
✔ Nitro Server built in 371 ms nitro 4:07:01 PM
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
✔ Nitro Server built in 371 ms nitro 4:07:01 PM
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@[email protected]/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
Daniel_Kinde
Daniel_Kinde7mo ago
Could you let me know what requests you're tring to make which are erroring?
9M6
9M6OP7mo ago
I'll try to investigate since this happens randomly. On my nuxt app the error is thrown in organisation component. @Daniel_Kinde is there some kind of debug functionality in the library to log the request?
Daniel_Kinde
Daniel_Kinde6mo ago
Hi @9M6 , Really sorry this came in out of my working hours and was missed the next day. There isn't any logging which is exposed. Are you able to capture the errors when they happen, should have more information in the thrown exception
Want results from more Discord servers?
Add your server