Deploy to Cloudflare button doesn't work

https://developers.cloudflare.com/workers/tutorials/deploy-button/ When I try clicking on the button shown in this page or any "Deploy to Cloudflare" button, the dashboard shows error dialog.
Cloudflare Docs
Create a deploy button with GitHub Actions · Cloudflare Workers docs
Deploy buttons let you deploy applications to Cloudflare's global network in under five minutes. The deploy buttons use Wrangler to deploy a Worker using the Wrangler GitHub Action. You can deploy an application from a set of ready-made Cloudflare templates, or make deploy buttons for your own applications to make sharing your work easier.
8 Replies
Walshy
Walshy22h ago
What button/repo are you trying to use?
Deo Kumar
Deo KumarOP22h ago
GitHub
GitHub - kumardeo/blogger-pwa: ✨ Build a PWA for your Blogger Sit...
✨ Build a PWA for your Blogger Site (supports blogspot.com subdomain) - kumardeo/blogger-pwa
Deo Kumar
Deo KumarOP22h ago
Deo Kumar
Deo KumarOP22h ago
Someone tried to fork it but he failed, I am also facing the same issue.
texan
texan22h ago
Does it attempt to clone the repository? Do you see a build started for it?
Deo Kumar
Deo KumarOP22h ago
No, it doesn't do anything.
texan
texan21h ago
I'm able to import a new project from your button (though it fails in Cloudflare dash later for different reasons) You mentioned the dashboard shows error dialog. Can you share the error details? What's the page you're on when the error occurs? Anything intetesting in the network tab?
Deo Kumar
Deo KumarOP21h ago
In console it shows: TypeError: Cannot read properties of undefined (reading 'length') Probably permissionGroups.length
S = ({accountId: H, permissionGroups: V}) => {

// ....

return {
buildTokens: (p = u) !== null && p !== void 0 ? p : [],
isLoading: v || _ || V.length === 0
}
}
S = ({accountId: H, permissionGroups: V}) => {

// ....

return {
buildTokens: (p = u) !== null && p !== void 0 ? p : [],
isLoading: v || _ || V.length === 0
}
}
No fetch errors in networks tab Earlier (when button style was different), no such issues were faced + we were able to deploy multiple workers using --config option but now it strictly asks the repo to have wrangler.json(c), wrangler.toml
What's the page you're on when the error occurs?
https://dash.cloudflare.com/d86e41cfc1f52b86827790972d55d1b3/workers-and-pages/create/deploy-to-workers?repository=https%3A%2F%2Fgithub.com%2Fkumardeo%2Fblogger-pwa As soon as I click on deploy to Cloudflare and dashboard loads.

Did you find this page helpful?