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
Erisa
Erisa•3mo ago
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
Walshy
Walshy•3mo ago
^ please write "JFSIII error"
JFSIII
JFSIIIOP•3mo ago
OK, thanks, I just sent another one with JFSIII error included
JFSIII
JFSIIIOP•3mo ago
The message is TypeError: Expected "environmentName" to match "[^\/]+?", but got ""
JFSIII
JFSIIIOP•3mo ago
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
Erisa
Erisa•3mo ago
ideally it shouldn't be possible though to brick a project even using the api, so still a good report
Walshy
Walshy•3mo ago
Seems we're trying to parse the Workers env in a Pages context -- I've let the team know!
JFSIII
JFSIIIOP•3mo ago
yeah, and I think I had to resort to the API b/c I couldn't use the UI
JFSIII
JFSIIIOP•3mo ago
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
JFSIII
JFSIIIOP•3mo ago
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
"services": {
"PORTAL_SERVICE": {
"service": "lift-portal-service",
"environment": "",
"entrypoint": "PortalService"
}
},
"services": {
"PORTAL_SERVICE": {
"service": "lift-portal-service",
"environment": "",
"entrypoint": "PortalService"
}
},
That "environment"": "" seems 🤔
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
JFSIII
JFSIIIOP•3mo ago
I'm using wrangler.toml for my Pages project, here's the relevant section from my wrangler.toml
[[services]]
binding = "PORTAL_SERVICE"
service = "lift-portal-service"
entrypoint = "PortalService"

[[env.preview.services]]
binding = "PORTAL_SERVICE"
service = "lift-portal-service"
entrypoint = "PortalService"
[[services]]
binding = "PORTAL_SERVICE"
service = "lift-portal-service"
entrypoint = "PortalService"

[[env.preview.services]]
binding = "PORTAL_SERVICE"
service = "lift-portal-service"
entrypoint = "PortalService"
@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
Cina Saffary
Cina Saffary•3mo ago
we’re currently deploying a fix for this. I’ll let you know when it’s live. @JFSIII this should now be fixed.
JFSIII
JFSIIIOP•3mo ago
@Cina Saffary It's working great, thanks!
Want results from more Discord servers?
Add your server