Server failed to respond

Hey guys, I need help really quick. When I published my site to workers, I keep getting:
{
"message": "Server failed to respond.",
"details": {}
}
{
"message": "Server failed to respond.",
"details": {}
}
in my body, instead of the actual page D: What do I do?
3 Replies
faye
fayeOP6mo ago
This is from the logs that show up:
{
"source": {
"level": "error",
"message": "Failed to prepare server TypeError: Cannot read properties of undefined (reading 'require')",
"$cloudflare": {
"$metadata": {
"id": "01JWXFQDVYBDK2M3VFQ5JB844P",
"type": "cf-worker",
"error": "Failed to prepare server TypeError: Cannot read properties of undefined (reading 'require')"
}
}
},
"dataset": "cloudflare-workers",
"timestamp": "2025-06-04T12:47:44.510Z",
"$workers": {
"truncated": false,
"event": {
"request": {
"url": "https://domainhere.nl/",
"method": "GET",
"path": "/"
}
},
"outcome": "ok",
"scriptName": "db-web",
"eventType": "fetch",
"executionModel": "stateless",
"scriptVersion": {
"id": "e1001e06-373c-4359-95a4-826db0e21b72"
},
"requestId": "94a78a5f1e262908"
},
"$metadata": {
"id": "01JWXFQDVYBDK2M3VFQ5JB844P",
"requestId": "94a78a5f1e262908",
"trigger": "GET /",
"service": "db-web",
"level": "error",
"error": "Failed to prepare server TypeError: Cannot read properties of undefined (reading 'require')",
"message": "Failed to prepare server TypeError: Cannot read properties of undefined (reading 'require')",
"account": "AccountIDHere",
"type": "cf-worker",
"fingerprint": "fbed61494d4d56b85a211c0906b0cc82",
"origin": "fetch"
},
"links": []
}
{
"source": {
"level": "error",
"message": "Failed to prepare server TypeError: Cannot read properties of undefined (reading 'require')",
"$cloudflare": {
"$metadata": {
"id": "01JWXFQDVYBDK2M3VFQ5JB844P",
"type": "cf-worker",
"error": "Failed to prepare server TypeError: Cannot read properties of undefined (reading 'require')"
}
}
},
"dataset": "cloudflare-workers",
"timestamp": "2025-06-04T12:47:44.510Z",
"$workers": {
"truncated": false,
"event": {
"request": {
"url": "https://domainhere.nl/",
"method": "GET",
"path": "/"
}
},
"outcome": "ok",
"scriptName": "db-web",
"eventType": "fetch",
"executionModel": "stateless",
"scriptVersion": {
"id": "e1001e06-373c-4359-95a4-826db0e21b72"
},
"requestId": "94a78a5f1e262908"
},
"$metadata": {
"id": "01JWXFQDVYBDK2M3VFQ5JB844P",
"requestId": "94a78a5f1e262908",
"trigger": "GET /",
"service": "db-web",
"level": "error",
"error": "Failed to prepare server TypeError: Cannot read properties of undefined (reading 'require')",
"message": "Failed to prepare server TypeError: Cannot read properties of undefined (reading 'require')",
"account": "AccountIDHere",
"type": "cf-worker",
"fingerprint": "fbed61494d4d56b85a211c0906b0cc82",
"origin": "fetch"
},
"links": []
}
faye
fayeOP6mo ago
Anyone that can help? :( It happens randomly and I really have no idea what to do about it. I don't use any 'require' anywhere
No description
faye
fayeOP6mo ago
Anyone? :Sadge:

Did you find this page helpful?