Hello everybody!
I’m trying to create an API but I’m having a problem. I can’t do this because of the error “TypeError: Cannot read properties of undefined (reading ‘client_id’)”. I ask you to help us figure it out. I want to use the API to further pair with my new application that I am developing. Thank you for your help!
Yep, confirmed this. The API returns a 422 with an empty response body when you use localhost URLs for either the redirect or privacy policy fields, so you get zero useful feedback from the server. To make it worse, the frontend then crashes trying to read client_id off the undefined response and just shows a generic TypeError - totally unhelpful.
Fix is simple: swap both redirect_urls and privacy_policy_url to real HTTPS (or at least non-localhost) URLs. Once I did that it went through immediately and the app was created. For dev purposes you can just use any placeholder domain you own.
