Aurélien Dupays Dexemple 🚀
Aurélien Dupays Dexemple 🚀
CDCloudflare Developers
Created by Aurélien Dupays Dexemple 🚀 on 12/23/2024 in #workers-help
Wrangler script POST Request API fails on `/workers/scripts/dev/versions`
Hey everyone 👋 Aurélien from Liveblocks here, We are currently experiencing an issue with our Wrangler script when it makes a POST request to: https://api.cloudflare.com/client/v4/accounts/************/workers/scripts/dev/versions . The endpoint returns a 500 HTTP status with the corresponding response:
-- START CF API REQUEST: POST https://api.cloudflare.com/client/v4/accounts/************/workers/scripts/dev/versions
HEADERS: {
"User-Agent": "wrangler/3.91.0"
}
INIT: {
"method": "POST",
"body": {}
}
BODY:
<all of our JS bundles' code here>
-- END CF API REQUEST

-- START CF API RESPONSE: Internal Server Error 500
HEADERS: {
"cf-auditlog-id": "0193f32d-b793-752a-a29d-4b83295ce968",
"cf-cache-status": "DYNAMIC",
"cf-ray": "8f67da5dab8c66cf-AMS",
"connection": "keep-alive",
"content-encoding": "gzip",
"content-type": "application/json; charset=UTF-8",
"date": "Mon, 23 Dec 2024 11:01:22 GMT",
"server": "cloudflare",
"set-cookie": "__cfruid=[REDACTED]; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None",
"transfer-encoding": "chunked",
"vary": "Accept-Encoding"
}
RESPONSE: {
"result": null,
"success": false,
"errors": [
{
"code": 10002,
"message": "An unknown error has occured. If this error persists, please file a report in the workers-sdk GitHub repository (https://github.com/cloudflare/workers-sdk/issues) or reach out to your account team."
}
],
"messages": []
}

-- END CF API RESPONSE
-- START CF API REQUEST: POST https://api.cloudflare.com/client/v4/accounts/************/workers/scripts/dev/versions
HEADERS: {
"User-Agent": "wrangler/3.91.0"
}
INIT: {
"method": "POST",
"body": {}
}
BODY:
<all of our JS bundles' code here>
-- END CF API REQUEST

-- START CF API RESPONSE: Internal Server Error 500
HEADERS: {
"cf-auditlog-id": "0193f32d-b793-752a-a29d-4b83295ce968",
"cf-cache-status": "DYNAMIC",
"cf-ray": "8f67da5dab8c66cf-AMS",
"connection": "keep-alive",
"content-encoding": "gzip",
"content-type": "application/json; charset=UTF-8",
"date": "Mon, 23 Dec 2024 11:01:22 GMT",
"server": "cloudflare",
"set-cookie": "__cfruid=[REDACTED]; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None",
"transfer-encoding": "chunked",
"vary": "Accept-Encoding"
}
RESPONSE: {
"result": null,
"success": false,
"errors": [
{
"code": 10002,
"message": "An unknown error has occured. If this error persists, please file a report in the workers-sdk GitHub repository (https://github.com/cloudflare/workers-sdk/issues) or reach out to your account team."
}
],
"messages": []
}

-- END CF API RESPONSE
This error is persisting from days now and we're not able deploy anymore in our DEV environment. Is there a way to fix it or are you currently working on a fix? LMK if you need more insight from me. Thanks, Aurélien
13 replies