Scott
Scott
KKinde
Created by Scott on 3/12/2025 in #💻┃support
Kinde API - "NAME_REQUIRED" error despite name being provided
Hi Ages, adding the "Content-Type": "application/json" header fixed everything. The API call is working perfectly now. Really appreciate your help on this🙏
8 replies
KKinde
Created by Scott on 3/12/2025 in #💻┃support
Kinde API - "NAME_REQUIRED" error despite name being provided
Thanks for your help! I added console.log right before the fetch call to check what's being sent:
console.log(
JSON.stringify({
name,
handle: createHandle(name),
sender_email: email,
})
);
console.log(
JSON.stringify({
name,
handle: createHandle(name),
sender_email: email,
})
);
The logged output shows the correct data: {"name":"Hello World","handle":"hello_world","sender_email":"[email protected]"} So it looks like my variables contain the right values before the fetch. Any other troubleshooting steps you'd recommend?
8 replies