Hello Node.js
X [ERROR] A request to the Cloudflare API (/accounts/123456 /pages/projects/test) failed.
Could not route to /accounts/123456 /pages/projects/test, perhaps your object identifier is invalid? [code: 7003]
No route for that URI [code: 7000]
So if you see after my account id 123456 there’s space. I think that’s causing the issue. But wrangler makes this request so I don’t know how to fix it.
I tried other libraries as well & same result.
If I use the child-process of NodeJS. I get an error saying fetch failed. No description or anything.
How do I solve this? I want to call an API & have the wrangler run to deploy new Cloudflare pages.
The above is my whole code. I’m trying to upload the demo files that Cloudflare Pages provides. You can test it out if possible it’s just the 3 lines of code being executed in Nodejs environment.
I’m not sure if I can post a real account Id. But that’s the only part that’s changed. You can re-create this exact issue with your account id as well. Or let me know if I should post it here.
X [ERROR] A request to the Cloudflare API (/accounts/267096448cd9e942d2130df8f6bad54b /pages/projects/test) failed.
Could not route to /accounts/267096448cd9e942d2130df8f6bad54b /pages/projects/test, perhaps your object identifier is invalid? [code: 7003]
No route for that URI [code: 7000]