K
Kinde2y ago
Sadi

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 - Kinde2y ago
Hey @9M6, What SDK are you using?
Sadi
SadiOP2y ago
Hey @Oli - Kinde I'm using the new Management API SDK
Sadi
SadiOP2y 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
Sadi
SadiOP2y 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/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/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/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/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/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/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/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/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/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/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/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
Daniel Rivers - Kinde
Could you let me know what requests you're tring to make which are erroring?
Sadi
SadiOP2y 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 Rivers - Kinde
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

Did you find this page helpful?