question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intermittent JSON parse failure

See original GitHub issue

https://github.com/mxcl/xcodebuild/runs/2754225991

Run ./
  with:
    platform: macOS
    xcode: ^11
    working-directory: fixture
    code-coverage: false
    action: test
    quiet: true
Selected Xcode 11.7.0
Error: SyntaxError: Unexpected token b in JSON at position 93

https://github.com/chris-araman/CombineCloudKit/runs/2754115546

Run chris-araman/xcodebuild@tweaks
  with:
    action: build
    platform: tvOS
    xcode: ~11.3
    quiet: false
    code-coverage: false
  env:
    TOOLCHAINS: 
Selected Xcode 11.3.1
Error: SyntaxError: Unexpected token b in JSON at position 106

I wonder whether this might be related to this issue, resolved in Xcode 12.5:

xcodebuild no longer double-escapes the output of xcodebuild -showBuildSettings -json. (63554669)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mxclcommented, Jun 9, 2021

I believe it will not happen anymore (release pending #22).

0reactions
mxclcommented, Jun 9, 2021

Probs fixed: #21

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intermittent JSON parser failure for unescaped control character
The error is probably happening because it is trying to parse a partial block of data. Share. Share a link to this answer....
Read more >
API Automation Intermittent Error with jSON Parse - web ...
Description: Try to hit the same code couple times, it gives error "ERROR - jSON Parse error: Unrecognized token '<'" intermittently.
Read more >
SyntaxError: JSON.parse: bad parsing - JavaScript | MDN
JSON.parse() parses a string as JSON. This string has to be valid JSON and will throw this error if incorrect syntax was encountered....
Read more >
Core UI raises JSON parsing error intermittently
UI is loading js script in the json file some times during that time its failed parse the JSON file. This a bug...
Read more >
Solved: Error while parsing JSON: 'Unexpected character en...
Http request failed: the content was not a valid JSON. Error while parsing JSON: 'Unexpected character encountered while parsing value: A. Path '',...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found