netlify-purge-cloudflare-on-deploy icon indicating copy to clipboard operation
netlify-purge-cloudflare-on-deploy copied to clipboard

404 not found error

Open taciturnaxolotl opened this issue 3 years ago • 3 comments

11:42:55 AM: ──────────────────────────────────────────────────────────────── 11:42:55 AM: Plugin "netlify-purge-cloudflare-on-deploy" failed
11:42:55 AM: ──────────────────────────────────────────────────────────────── 11:42:55 AM: ​ 11:42:55 AM: Error message 11:42:55 AM: Error: Cloudflare cache purge failed 11:42:55 AM: Cloudflare cache couldn't be purged. Status: 404 Not found ​ 11:42:55 AM: Plugin details 11:42:55 AM: Package: netlify-purge-cloudflare-on-deploy 11:42:55 AM: Version: 1.2.0 11:42:55 AM: Repository: git+https://github.com/chrism2671/netlify-purge-cloudflare-on-deploy.git 11:42:55 AM: npm link: https://www.npmjs.com/package/netlify-purge-cloudflare-on-deploy 11:42:55 AM: Report issues: https://github.com/chrism2671/netlify-purge-cloudflare-on-deploy/issues 11:42:55 AM: ​ 11:42:55 AM: Error location 11:42:55 AM: In "onSuccess" event in "netlify-purge-cloudflare-on-deploy" from Netlify app 11:42:55 AM: ​ 11:42:55 AM: Resolved config 11:42:55 AM: build: 11:42:55 AM: environment: 11:42:55 AM: - CLOUDFLARE_API_TOKEN 11:42:55 AM: - CLOUDFLARE_ZONE_ID 11:42:55 AM: - NETLIFY_GRAPH_TOKEN 11:42:55 AM: - ONEGRAPH_AUTHLIFY_TOKEN 11:42:55 AM: publish: /opt/build/repo 11:42:55 AM: publishOrigin: ui 11:42:55 AM: plugins: 11:42:55 AM: - inputs: {} 11:42:55 AM: origin: ui 11:42:55 AM: package: netlify-purge-cloudflare-on-deploy

taciturnaxolotl avatar Oct 31 '22 15:10 taciturnaxolotl

Thanks for the report @kcoderhtml. It should be straightforward to debug, but alas I don't have time to maintain this at the moment. If you're willing to submit a tested PR, I'd be happy to merge it.

chrism2671 avatar Oct 31 '22 16:10 chrism2671

That makes sense I'm not quite sure how to debug it but would be willing to help if you could point me to some instructions.

taciturnaxolotl avatar Oct 31 '22 17:10 taciturnaxolotl

I found the issue I didn't know what the zone id was so I put in my domain which didn't work

taciturnaxolotl avatar Oct 31 '22 17:10 taciturnaxolotl