K
Kinde4mo ago
C

{ errors: [ { code: 'NAME_REQUIRED', message: 'Name is required' } ] }

Suddenly getting this error using the create org api I am sending a name in my body {"name":"IF","is_allow_registrations":true} const createOrgRes = await fetch(orgUrl, { method: 'POST', headers: kindeheaders, body: JSON.stringify({ "name": customer.customer_name, "is_allow_registrations": true }) }); console.log(JSON.stringify({ "name": customer.customer_name, "is_allow_registrations": true })); const createOrgData = await createOrgRes.json(); console.log(createOrgData); it worked few days ago, is anything changed?
11 Replies
Daniel_Kinde
Daniel_Kinde4mo ago
Hi, Let me check into this for you. I am not seeing any changes, can you confirm the payload you're sending?
C
C4mo ago
{ method: 'POST', headers: { Accept: 'application/json', Authorization: 'Bearer REMOVED' }, body: '{"name":"Braedstrup IF","is_allow_registrations":true}' } { status: 'error', error_id: '880e52162b64472985d37a218239bab5' } i am listing org prior in my code withot problems, so my auth code is working
Daniel_Kinde
Daniel_Kinde4mo ago
Thansk for giving the payload, I will look into the error and come back to you
C
C4mo ago
Or { method: 'POST', headers: { Accept: 'application/json', Authorization: 'Bearer REMOVED!!' }, body: '{"name":"Braedstrup IF","is_allow_registrations":true}' } Failed to fetch org code from Umami: Bad Request { errors: [ { code: 'NAME_REQUIRED', message: 'Name is required' } ] }
ryno1234.
ryno1234.4mo ago
I'm wondering if this is related to my issue I was having with importing organizations where it was telling me that the "name" column is required. @Daniel_Kinde, any update?
Daniel_Kinde
Daniel_Kinde4mo ago
Hi @ryno1234. I have been trying to find a way to reproduce your issue when supplying a name, I have been unable to. The only way I was able to get this issue is when name was empty. I am going to DM you a link, book a slot on my diary and we can jump on a call and look into it together?
C
C3mo ago
Any news on this one, just tried again and still receive the Name required.. { method: 'POST', headers: { Accept: 'application/json', Authorization: 'Bearer REMOVED!' }, body: '{"name":"SabroIF","is_allow_registrations":true}' } { errors: [ { code: 'NAME_REQUIRED', message: 'Name is required' } ] }
Daniel_Kinde
Daniel_Kinde3mo ago
@C I have tried to reproduce this and not been able to, using your exact payload it works for me so keen to look at this with you closer. Can you give me reproduction steps or are you happy to jump on a call so I can look at the issue with you?
C
C3mo ago
@Daniel_Kinde did you have the time to check the info i sent to you on DM?
Daniel_Kinde
Daniel_Kinde3mo ago
I am sorry I missed your DM, I will check to see what could be happening here. Hi @C I have found the issue, when you're making the request the you need to include 'Content-Type':'application/json', I added to your code and it worked ok. Let me know if this works for you.
C
C3mo ago
nice find, do you know why it suddenly stopped working? and thanks
Want results from more Discord servers?
Add your server
More Posts
Post Logout Redirect ParameterHi there! I am using Next 13.4.19 with "@kinde-oss/kinde-auth-nextjs": "^2.1.10" I am trying to charedirect from root "/" with middleware in next.jsI want to make a classic stuff, i have a SaaS with a landing page and some routes, a login and afterKnow if an email address is validated in JWTI'm using .Net with the OIDC integration / middleware. Most everything seems to be working well, excWhat is the best way to let my .NET API know a user has registered ?I am using .NET as my backend and Angular as my frontend (Typescript SDK). I am aware that webhooksCustom Success route.ts failing in build process && not showing logs inside GET()Refer to the code on the thread while reading this: goal: create copy of user in postgres db after getting redirected even when not wantedProblem started when I tried out to connect prisma to kinde. I set up the redirect_url and tested itkinde and Cloudflare WorkersHey guys, planning to use Kinde on a new project and wanted to know if there are any more docs for iWhether each backend sdk can directly create usershttps://kinde.com/docs/developer-tools/ruby-sdk/#create-new-user so i see that ruby ​​can create usInvite users to Kinde (and organization) through the APIHello at Kinde! I am looking for a way for already existing users (inside Kinde and in a organizatioHow can I implement an API to search user by their emails?Should I save user detail in my own DB and sync them somehow? Or does kinde support some kind of sea