Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

wrangler tail: Error parsing response body! #1990

Closed
Electroid opened this issue Jul 6, 2021 · 0 comments 路 Fixed by #1994
Closed

wrangler tail: Error parsing response body! #1990

Electroid opened this issue Jul 6, 2021 · 0 comments 路 Fixed by #1994
Assignees
Labels
bug Something isn't working

Comments

@Electroid
Copy link
Contributor

馃悰 Bug report

Describe the bug

When a Worker has a console.log of an Object, such as:

console.log({ key: 'value', value: 1.234, objects: [ 1, '2'] })

And wrangler tail --format=pretty is used, it returns an error:

Error parsing response body!
This is not a problem with your worker, it's a problem with Wrangler.
Please file an issue on our GitHub page, with a minimal reproducible example of
the script that caused this error and a description of what happened.

Reproduce the bug

A list of steps to reproduce the bug.

  1. Publish a Worker with the above code snippet somewhere in the execution.
  2. Run wrangler tail -p 0 --format=pretty
  3. See error

Expected behavior

Instead of erroring, it should print the object that is logged.

Environment and versions

Fill out the following information about your environment.

  • operating system: MacOS
  • output of wrangler -V: 1.17
  • output of node -v: 14.15.3
  • content of wrangler.toml: N/A
@Electroid Electroid added the bug Something isn't working label Jul 6, 2021
@jspspike jspspike self-assigned this Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants