Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27611] [Windows - Android] 'Failed to read "bootstrap.json". Reason: Unexpected token � in JSON at position 0' can be seen intermittently

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2020-01-07T18:03:15.000+0000
Affected Version/sRelease 8.3.0
Fix Version/sRelease 8.3.0
ComponentsAndroid
LabelsengSchedule
ReporterSamir Mohammed
AssigneeUnknown
Created2019-11-18T19:25:57.000+0000
Updated2020-01-07T18:03:15.000+0000

Description

When running a Titanium/alloy application sometimes the error below can be seen in the logs, although it seems to have no effect on the app.
[ERROR] :  Failed to read "bootstrap.json". Reason: Unexpected token � in JSON at position 0
*Test Steps:*

Create a Alloy/Titanium application

Run app to an Android emulator

Check logs for above message

*Actual result* Above error can be seen intermittently. *Expected result* Error should not be seen.

Comments

  1. Joshua Quick 2019-11-20

    [~smohammed], I suspect the fix [~gmathews] made for [TIMOB-27610] will solve this issue too since the "bootstrap.json" file is encrypted with the JS files. [~gmathews]'s PRs have already been merged into "master" and 8.3.0. Would you mind giving it another go please? Thanks.
  2. Samir Mohammed 2019-11-21

    [~jquick] I ran this a few times and I was not able to see the error message mentioned in the description.
  3. Alan Hutton 2020-01-07

    Closing. Fixed in 8.3.0.GA.

JSON Source