Dashboard for Pages project settings won't load / throw JS error
This behavior started ~12 hours ago. Around 7-8pm US Eastern
1) From Workers & Pages https://dash.cloudflare.com/ACCOUNT_ID/workers-and-pages
2) Click a Pages product name, sent to https://dash.cloudflare.com/ACCOUNT_ID/pages/view/PAGES_PROJECT_NAME
3) Click Settings, sent to https://dash.cloudflare.com/ACCOUNT_ID/pages/view/PROJECT_NAME/settings which quickly becomes https://dash.cloudflare.com/ACCOUNT_ID/pages/view/PROJECT_NAME/settings
4) See loading skeleton, then quickly "It looks like we're having some internal issues." page
Stack trace in the JS console is attached
13 Replies
I dont see an attachment, but if you write something recognisable and descriptive in the internal issues box then someone at Cloudflare might be able to track it down
^ please write "JFSIII error"
OK, thanks, I just sent another one with JFSIII error included
The message is
TypeError: Expected "environmentName" to match "[^\/]+?", but got ""
oh, this might be a self-own. I thought it was on all my Pages projects, but it's only on some. And I did have to use an API call yesterday to set a build command so maybe I messed something up. I noticed a new settings UI just a few moments before these errors started. I'll see if I can find something relevant in the working Pages projects to use to update the broken ones
ideally it shouldn't be possible though to brick a project even using the api, so still a good report
Seems we're trying to parse the Workers env in a Pages context -- I've let the team know!
yeah, and I think I had to resort to the API b/c I couldn't use the UI
For completeness, the API calls I made were to https://developers.cloudflare.com/api/operations/pages-project-get-project and https://developers.cloudflare.com/api/operations/pages-project-update-project
I was so worried about messing thing up, I first called the GET, then removed the unnecessary bits then called the PATCH with the one updated build_config.build_command line
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
I just made a https://developers.cloudflare.com/api/operations/pages-project-get-project call to a Pages project that's not failing and one that is and compared their output
diff success.json error.json doesn't show much promising except this under both result.deployment_configs.preview & result.deployment_configs.production and in a "services" section
That
"environment"": ""
seems 🤔Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
I'm using wrangler.toml for my Pages project, here's the relevant section from my wrangler.toml
@Walshy | Deploying Any idea of the rough ETA for a fix? Is it hours? days? weeks? I've got no real expectations, I'm just trying to get an idea.
In the meantime, is there any workaround? I'm developing something with these (and tweaking how they're built & work together) and it's definitely a challenge not to have the UI
we’re currently deploying a fix for this. I’ll let you know when it’s live.
@JFSIII this should now be fixed.
@Cina Saffary It's working great, thanks!