07-03-2019
05:41
- last edited on
07-04-2019
15:12
by
JonFitbit
07-03-2019
05:41
- last edited on
07-04-2019
15:12
by
JonFitbit
This is the log I'm getting from running FitBit OS Simulator in the MacOS folder in its package contents:
Checking for update
[08:39:34.361] [info] appsim exit code: null (signal SIGTERM)
[08:39:34.409] [error] appsim stderr: 2019-07-03 08:39:34.409 app[4219:30010] ASSERT_Log: Type: 26 func_addr: 0x07257d80 lr: 0x00000000, file: ../../fb_private/fb_system/fbsys_notification.c, line: 209, func: _removeNotification, expr: false
[08:39:34.667] [error] Error setting email address: Error: Failed to fetch user data. Error: Error: Request failed with status 401: {"success":false,"errors":[{"errorType":"expired_token","message":"Access token expired: xxx. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}]}
Update for version 0.7.2 is not available (latest version: 0.7.2, downgrade is disallowed).
[08:39:35.114] [warn] 10 retries left: Error: connect ECONNREFUSED 127.0.0.1:63981
[08:39:35.119] [info] companionhost->companion: {"method":"devbridge.status","params":{"status":"disconnected"},"jsonrpc":"2.0"}
[08:39:35.120] [info] Shell Client connected
[08:39:35.137] [info] companion->shell: {"method":"devbridge.status","params":{"status":"disconnected"},"jsonrpc":"2.0"}
[08:39:35.139] [info] shell->companion: {"id":0,"method":"initialize","params":{"capabilities":{"protocol":{"maxMessageSize":536870912}}},"jsonrpc":"2.0"}
[08:39:35.140] [info] companion->companionhost: {"id":0,"method":"initialize","params":{"capabilities":{"protocol":{"maxMessageSize":536870912}}},"jsonrpc":"2.0"}
[08:39:35.141] [info] companionhost->companion: {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"protocol":{"maxMessageSize":536870912}}}}
[08:39:35.181] [info] companion->shell: {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"protocol":{"maxMessageSize":536870912}}}}
[08:39:35.185] [info] shell->companion: {"id":1,"method":"devbridge.connect","params":{"authorization":"<redacted>","uri":"wss://027-v3-api-soa.fitbit.com:443/dbridge/"},"jsonrpc":"2.0"}
[08:39:35.186] [info] companion->companionhost: {"id":1,"method":"devbridge.connect","params":{"authorization":"<redacted>","uri":"wss://027-v3-api-soa.fitbit.com:443/dbridge/"},"jsonrpc":"2.0"}
[08:39:35.187] [info] Connecting to developer relay
[08:39:35.187] [info] companionhost->companion: {"method":"devbridge.status","params":{"status":"connecting"},"jsonrpc":"2.0"}
[08:39:35.193] [info] companionhost->companion: {"id":1,"jsonrpc":"2.0","result":null}
[08:39:35.194] [info] companion->shell: {"method":"devbridge.status","params":{"status":"connecting"},"jsonrpc":"2.0"}
[08:39:35.194] [info] companion->shell: {"id":1,"jsonrpc":"2.0","result":null}
[08:39:35.306] [info] appsim stdout: [D][08:39:34.409][] Scheduler starting dispatch time: 1562157574409
[D][08:39:35.305][] Fb_AlarmMgr_Clean is running
[A][08:39:35.306][] Houston, this is Versa!!
[I][08:39:35.306][] Simulator control server starting on 127.0.0.1:63981
[A][08:39:35.306][] Press ? anytime for help
[A][08:39:35.306][] Version: 255.1.930 (May 29 2019 05:51:13): f5c4ea4829
[A][08:39:35.306][] GNU_BUILD_ID:
mfgtst $
[08:39:35.306] [error] appsim stderr: [2019/07/03 08:39:35:3062] NOTICE: libuv support not compiled in
[08:39:35.310] [error] appsim stderr: [2019/07/03 08:39:35:3107] NOTICE: Creating Vhost 'default' port -1, 1 protocols, IPv6 off
[08:39:35.312] [error] appsim stderr: [2019/07/03 08:39:35:3121] NOTICE: created client ssl context for default
[2019/07/03 08:39:35:3121] NOTICE: Creating Vhost 'default' port 63981, 1 protocols, IPv6 off
[08:39:35.380] [error] appsim stderr: 2019-07-03 08:39:35.380 app[4219:30083] ASSERT_Log: Type: 2 func_addr: 0x07266dd0 lr: 0x00000000, file: ../../external_libs/koru/source/i18n/uifwk_i18n.c, line: 57, func: prv_get_locale_table_entry, expr: false
2019-07-03 08:39:35.380 app[4219:30083] ASSERT_Log: Type: 2 func_addr: 0x07267170 lr: 0x00000000, file: ../../external_libs/koru/source/i18n/uifwk_i18n.c, line: 375, func: Uifwk_I18n_GetTextMaxLength, expr: false
2019-07-03 08:39:35.380 app[4219:30083] ASSERT_Log: Type: 2 func_addr: 0x07266dd0 lr: 0x00000000, file: ../../external_libs/koru/source/i18n/uifwk_i18n.c, line: 57, func: prv_get_locale_table_entry, expr: false
2019-07-03 08:39:35.380 app[4219:30083] ASSERT_Log: Type: 2 func_addr: 0x07266dd0 lr: 0x00000000, file: ../../external_libs/koru/source/i18n/uifwk_i18n.c, line: 284, func: Uifwk_I18n_GetText, expr: false
[08:39:35.380] [error] appsim stderr: 2019-07-03 08:39:35.380 app[4219:30083] GLUI: Resources/switcher/switcher_main.gui:164: Error 0 Localization returned error, text remains as '_monthday_format_system' in format
[08:39:35.382] [error] appsim stderr: 2019-07-03 08:39 app[4219] (FSEvents.framework) FSEventStreamCreate: _FSEventStreamCreate: ERROR: could not allocate 0 bytes for array of path strings
2019-07-03 08:39 app[4219] (FSEvents.framework) FSEventStreamScheduleWithRunLoop(): failed assertion 'streamRef != NULL'
2019-07-03 08:39 app[4219] (FSEvents.framework) FSEventStreamStart(): failed assertion 'streamRef != NULL'
[08:39:35.384] [error] appsim stderr: 2019-07-03 08:39:35.383 app[4219:30083] ASSERT_Log: Type: 2 func_addr: 0x072f6040 lr: 0x00000000, file: ../../products/common/src/fb_apps/switcher/switcher_grid_order.c, line: 53, func: Switcher_GridOrder_Load, expr: false
[08:39:35.439] [error] appsim stderr: 2019-07-03 08:39 app[4219] (FSEvents.framework) FSEventStreamCreate: _FSEventStreamCreate: ERROR: could not allocate 0 bytes for array of path strings
2019-07-03 08:39 app[4219] (FSEvents.framework) FSEventStreamScheduleWithRunLoop(): failed assertion 'streamRef != NULL'
2019-07-03 08:39 app[4219] (FSEvents.framework)
[08:39:35.439] [error] appsim stderr: FSEventStreamStart(): failed assertion 'streamRef != NULL'
[08:39:35.708] [info] companionhost->companion: {"method":"devbridge.status","params":{"status":"unauthorized"},"jsonrpc":"2.0"}
[08:39:35.714] [info] companion->shell: {"method":"devbridge.status","params":{"status":"unauthorized"},"jsonrpc":"2.0"}
*********************************
* SentryElectron unhandledError *
*********************************
Error: WebSocket was closed before the connection was established
at WebSocket.close (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/ws/lib/websocket.js:252:9)
at clearConnection (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/main.js:1:69796)
at /Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/utils/invokeEach.js:11:15
at Array.forEach (<anonymous>)
at invokeEach (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/utils/invokeEach.js:10:7)
at StateMachine.enterState (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/StateMachine.js:125:32)
at StateMachine.executeTransition (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/StateMachine.js:116:12)
at StateMachine.tryHandle (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/StateMachine.js:66:12)
at /Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/HierarchicalStateMachine.js:75:30
at TaskScheduler.execute (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/TaskScheduler.js:29:7)
at TaskScheduler.enqueue (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/TaskScheduler.js:19:12)
at HierarchicalStateMachine.handle (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/HierarchicalStateMachine.js:72:24)
at WebSocket.handleUnexpectedResponse (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/main.js:1:68701)
at WebSocket.emit (events.js:182:13)
at WebSocket.EventEmitter.emit (domain.js:442:20)
at ClientRequest._req.on (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/ws/lib/websocket.js:639:15)
at ClientRequest.emit (events.js:182:13)
at ClientRequest.EventEmitter.emit (domain.js:442:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:546:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
at TLSSocket.socketOnData (_http_client.js:432:20)
at TLSSocket.emit (events.js:182:13)
at TLSSocket.EventEmitter.emit (domain.js:442:20)
at addChunk (_stream_readable.js:279:12)
at readableAddChunk (_stream_readable.js:264:11)
at TLSSocket.Readable.push (_stream_readable.js:219:10)
at TLSWrap.onread (net.js:636:20)
---------------------------------
[08:39:35.720] [info] shell->companion: {"id":2,"method":"devbridge.connect","params":{"authorization":"<redacted>","uri":"wss://027-v3-api-soa.fitbit.com:443/dbridge/"},"jsonrpc":"2.0"}
[08:39:35.725] [info] companion->companionhost: {"id":2,"method":"devbridge.connect","params":{"authorization":"<redacted>","uri":"wss://027-v3-api-soa.fitbit.com:443/dbridge/"},"jsonrpc":"2.0"}
[08:39:35.725] [info] Connecting to developer relay
[08:39:35.726] [info] companionhost->companion: {"method":"devbridge.status","params":{"status":"connecting"},"jsonrpc":"2.0"}
[08:39:35.727] [info] companionhost->companion: {"id":2,"jsonrpc":"2.0","result":null}
[08:39:35.729] [info] companion->shell: {"method":"devbridge.status","params":{"status":"connecting"},"jsonrpc":"2.0"}
[08:39:35.730] [info] companion->shell: {"id":2,"jsonrpc":"2.0","result":null}
[08:39:36.129] [info] companionhost->companion: {"method":"devbridge.status","params":{"status":"unauthorized"},"jsonrpc":"2.0"}
raven@2.4.2 alert: uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown
Error: WebSocket was closed before the connection was established
at WebSocket.close (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/ws/lib/websocket.js:252:9)
at clearConnection (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/main.js:1:69796)
at /Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/utils/invokeEach.js:11:15
at Array.forEach (<anonymous>)
at invokeEach (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/utils/invokeEach.js:10:7)
at StateMachine.enterState (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/StateMachine.js:125:32)
at StateMachine.executeTransition (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/StateMachine.js:116:12)
at StateMachine.tryHandle (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/StateMachine.js:66:12)
at /Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/HierarchicalStateMachine.js:75:30
at TaskScheduler.execute (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/TaskScheduler.js:29:7)
at TaskScheduler.enqueue (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/TaskScheduler.js:19:12)
at HierarchicalStateMachine.handle (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/finity/lib/core/HierarchicalStateMachine.js:72:24)
at WebSocket.handleUnexpectedResponse (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/main.js:1:68701)
at WebSocket.emit (events.js:182:13)
at WebSocket.EventEmitter.emit (domain.js:442:20)
at ClientRequest._req.on (/Applications/Fitbit OS Simulator.app/Contents/Resources/app.asar/node_modules/ws/lib/websocket.js:639:15)
at ClientRequest.emit (events.js:182:13)
at ClientRequest.EventEmitter.emit (domain.js:442:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:546:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
at TLSSocket.socketOnData (_http_client.js:432:20)
at TLSSocket.emit (events.js:182:13)
at TLSSocket.EventEmitter.emit (domain.js:442:20)
at addChunk (_stream_readable.js:279:12)
at readableAddChunk (_stream_readable.js:264:11)
at TLSSocket.Readable.push (_stream_readable.js:219:10)
at TLSWrap.onread (net.js:636:20)
[08:39:36.142] [info] companion->shell: {"method":"devbridge.status","params":{"status":"unauthorized"},"jsonrpc":"2.0"}
[08:39:36.163] [info] Shell Client disconnected
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
I did just implement persistent storage. This is after a fresh uninstall. What is going on here?
Answered! Go to the Best Answer.
Best Answer07-05-2019 07:50
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
07-05-2019 07:50
This appears to be due to how the simulator handles date/time, and that you'd manually adjusted the system date/time.
Best Answer07-05-2019 07:50
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
07-05-2019 07:50
This appears to be due to how the simulator handles date/time, and that you'd manually adjusted the system date/time.
Best Answer10-17-2019 22:48
10-17-2019 22:48
Hello,
I am facing same issue.
I adjusted date/time manually while testing my clockface and now my simulator does not start.
Is there any way to clear local storage/cache/token ?
I tried re-installing sim, but did not help
Error setting email address: Error: Failed to fetch user data. Error: Error: Request failed with status 401: {"success":false,"errors":[{"errorType":"expired_token","message":"Access token expired: <SOME TOKEN HERE>. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}]}
10 retries left: Error: connect ECONNREFUSED 127.0.0.1:63981
Best Answer10-18-2019 02:46
10-18-2019 02:46
I haven't been able to run the simulator on Windows for quite a while due to a ECONNREFUSED error. Has happened with the last few versions. I'm a bit stuck!
Best Answer