Hello,
I’m following a guide on npm: netlify - npm
I want to create a new site using the API, I’m using nodejs as my server to handle all the request for
the API.
I’m facing a problem using createSite method, I keep getting an error:
JSONHTTPError: Unprocessable Entity
at parseResponse (C:\Users\Hadar LetsApp\Desktop\Hadar\netlify-api-test\test\node_modules\netlify\src\methods\response.js:13:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async callMethod (C:\Users\Hadar LetsApp\Desktop\Hadar\netlify-api-test\test\node_modules\netlify\src\methods\index.js:33:26)
at async C:\Users\Hadar LetsApp\Desktop\Hadar\netlify-api-test\test\routes\files.js:45:18 {
status: 422,
json: { errors: { subdomain: [Array] } }
}
Please let me know if you need more details about my code.
Best regards,
Hadar