different behaviour with same deployments | 522 error on cloudflare pages

i've setup two cloudflare pages apps, and with exact same deployments (i've not touched settings in the dashboard), one of them gives error while other is working as it should. (redacted domain names, if possible i'd rather not share them publicly) any idea what might be wrong?
$ cat www2/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
</body>
</html>

$ wrangler pages deploy --project-name redacted5 www2
🌍 Uploading... (1/1)

✨ Success! Uploaded 0 files (1 already uploaded) (0.53 sec)

✨ Deployment complete! Take a peek over at https://227df032.redacted5.pages.dev
$ wrangler pages deploy --project-name redacted6 www2
🌍 Uploading... (1/1)

✨ Success! Uploaded 0 files (1 already uploaded) (0.24 sec)

✨ Deployment complete! Take a peek over at https://e52e954d.redacted6.pages.dev
$ curl https://redacted5.pages.dev
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
</body>
</html>

$ curl https://redacted6.pages.dev
error code: 522%
$ cat www/_worker.js
export default {
/**
* @param {Request} request
*/
async fetch(request) {
return new Response("hello to " + request.headers.get("User-Agent") || "N/A")
},
}
$ wrangler pages deploy --project-name redacted6 www
🌍 Uploading... (0/0)

✨ Success! Uploaded 0 files (0.19 sec)

✨ Compiled Worker successfully
✨ Uploading Worker bundle
✨ Deployment complete! Take a peek over at https://e83e374a.redacted6.pages.dev
$ wrangler pages deploy --project-name redacted5 www
🌍 Uploading... (0/0)

✨ Success! Uploaded 0 files (0.20 sec)

✨ Compiled Worker successfully
✨ Uploading Worker bundle
✨ Deployment complete! Take a peek over at https://be17aa6c.redacted5.pages.dev
$ curl https://redacted6.pages.dev
error code: 522%
$ curl https://redacted5.pages.dev
hello to curl/8.4.0%
$ cat www2/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
</body>
</html>

$ wrangler pages deploy --project-name redacted5 www2
🌍 Uploading... (1/1)

✨ Success! Uploaded 0 files (1 already uploaded) (0.53 sec)

✨ Deployment complete! Take a peek over at https://227df032.redacted5.pages.dev
$ wrangler pages deploy --project-name redacted6 www2
🌍 Uploading... (1/1)

✨ Success! Uploaded 0 files (1 already uploaded) (0.24 sec)

✨ Deployment complete! Take a peek over at https://e52e954d.redacted6.pages.dev
$ curl https://redacted5.pages.dev
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
</body>
</html>

$ curl https://redacted6.pages.dev
error code: 522%
$ cat www/_worker.js
export default {
/**
* @param {Request} request
*/
async fetch(request) {
return new Response("hello to " + request.headers.get("User-Agent") || "N/A")
},
}
$ wrangler pages deploy --project-name redacted6 www
🌍 Uploading... (0/0)

✨ Success! Uploaded 0 files (0.19 sec)

✨ Compiled Worker successfully
✨ Uploading Worker bundle
✨ Deployment complete! Take a peek over at https://e83e374a.redacted6.pages.dev
$ wrangler pages deploy --project-name redacted5 www
🌍 Uploading... (0/0)

✨ Success! Uploaded 0 files (0.20 sec)

✨ Compiled Worker successfully
✨ Uploading Worker bundle
✨ Deployment complete! Take a peek over at https://be17aa6c.redacted5.pages.dev
$ curl https://redacted6.pages.dev
error code: 522%
$ curl https://redacted5.pages.dev
hello to curl/8.4.0%
4 Replies
Erisa
Erisa•11mo ago
@A. S. can you DM me the domain name of the one returning 522s? Or share the ?pages-deployment-id
Flare
Flare•11mo ago
The Pages deployment ID is a unique build identifier. It's the UUID in the browser bar (for example, a URL would be dash.cloudflare.com/ACCOUNT_ID/pages/view/PROJECT/DEPLOYMENT_ID where the deployment ID looks something like a398d794-7322-4c97-96d9-40b5140a8d9b). This ID can help troubleshoot some issues with Pages builds so if you have a failing build make sure you grab that ID for the Pages team to use.
Erisa
Erisa•11mo ago
Sharing the deployment ID also lets me look up the domain without it being shared publicly
Arc
ArcOP•11mo ago
sent the dm May I know if there are any updates on this?
Want results from more Discord servers?
Add your server