🐛 BUG: Received a malformed response from the API
See original GitHub issueWhat version of Wrangler
are you using?
2.0.8
What operating system are you using?
Mac
Describe the Bug
I can’t publish my project anymore (which I could publish yesterday just fine).
❯ wrangler publish --env staging
⛅️ wrangler 2.0.8
-------------------
Your worker has access to the following bindings:
- Vars:
- ENVIRONMENT: "staging"
✘ [ERROR] Received a malformed response from the API
{
"result": {
"id": "front-staging",
"etag": "c2bc4c316edc5f156011be2cafb1a0ba8e2e6584c277... (length = 2809573)
PUT /accounts/d7c7e62dcb0e66.......7b90d86b10/workers/scripts/front-staging -> 200 OK
If you think this is a bug, please open an issue at:
https://github.com/cloudflare/wrangler2/issues/new/choose
EDIT: Correction, it seems the project was published, even though Wrangler gives me an error.
Issue Analytics
- State:
- Created a year ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
python - Parse Error: The server returned a malformed response
I want to check that the app correctly receives the request and returns some response. So I try to access that url with...
Read more >Receiving a Malformed JSON Error When Using API Doc
The malformed JSON error means that the format of the API call is incorrect. Resolution. In this case, the values for "port" and...
Read more >Postman error message malformed request - Forum
hi - trying to formulate an API request with Postman. Despite copying all the set up and following step by step i get...
Read more >The request could not be understood by the server due to ...
I am getting this error: {'message': 'The request could not be understood ... by the server due to malformed syntax When doing POST...
Read more >Response codes - The REST API basics - Akeneo API
As JSON format is expected in all POST and PATCH requests, you will get this error response when your JSON body is malformed....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We have a fix rolling out on the api side (hopefully this week?), and a wrangler pr that leverages that fix (https://github.com/cloudflare/wrangler2/pull/1248) which we’ll land soon after
I believe the escaping bug has been fixed on the api end, and the additional fix to not include it given the excludeScript query params will be rolled out soon. So I’m going to close this. Thanks everyone for reporting!