02-04-2020 14:23
02-04-2020 14:23
I just got a Versa 2 and started learning about FitBit OS development. I was able to start developing on studio.fitbit.com but after closing my session and returning later I am no longer able to login.
When attempting to login to studio.fitbut.com on Chrome 80 I am stuck on spinner "Checking login..."
I am also unable to authenticate with the CLI when starting a new project and running `npx fitbit` on Mac OS Catalina 10.15.3 I see "No login information, starting login...Login failed: request" after being redirected by Chrome to a screen saying "Close your browser to continue"
Network Tab in Chrome dev tools shows 500 error. Here is one of the Sentry payloads:
{
"project": "188605",
"logger": "javascript",
"platform": "javascript",
"request": {
"headers": {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
},
"url": "https://studio.fitbit.com/"
},
"exception": {
"values": [
{
"type": "APIError",
"value": "API request to 'https://api.fitbit.com/1/user/-/profile.json failed with 500 ",
"stacktrace": {
"frames": [
{
"filename": "https://accounts.fitbit.com/client.js",
"lineno": 1,
"colno": 11156,
"function": "MutationObserver.flush",
"in_app": true
},
{
"filename": "https://accounts.fitbit.com/client.js",
"lineno": 1,
"colno": 3278,
"function": "publish",
"in_app": true
},
{
"filename": "https://accounts.fitbit.com/client.js",
"lineno": 1,
"colno": 3549,
"function": "invokeCallback",
"in_app": true
},
{
"filename": "https://accounts.fitbit.com/client.js",
"lineno": 1,
"colno": 3405,
"function": "tryCatch",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/3.773a1b7b.chunk.js",
"lineno": 2,
"colno": 940819,
"function": "?",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/3.773a1b7b.chunk.js",
"lineno": 2,
"colno": 940668,
"function": "t",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/3.773a1b7b.chunk.js",
"lineno": 2,
"colno": 940107,
"function": "l",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/3.773a1b7b.chunk.js",
"lineno": 2,
"colno": 940530,
"function": "Generator.S.forEach.e.<computed> [as next]",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/3.773a1b7b.chunk.js",
"lineno": 2,
"colno": 939895,
"function": "Generator._invoke",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/3.773a1b7b.chunk.js",
"lineno": 2,
"colno": 940107,
"function": "l",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/6.d7e2d6c3.chunk.js",
"lineno": 1,
"colno": 115964,
"function": "?",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/6.d7e2d6c3.chunk.js",
"lineno": 1,
"colno": 124434,
"function": "Response.E [as throwForStatus]",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/0.fde7d553.chunk.js",
"lineno": 2,
"colno": 69365,
"function": "G.context",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/0.fde7d553.chunk.js",
"lineno": 2,
"colno": 69731,
"function": "G.o",
"in_app": true
},
{
"filename": "https://studio-assets.fitbit.com/static/js/6.d7e2d6c3.chunk.js",
"lineno": 1,
"colno": 124504,
"function": "G.<anonymous>",
"in_app": true
}
]
}
}
],
"mechanism": {
"type": "generic",
"handled": true
}
},
"transaction": "https://studio-assets.fitbit.com/static/js/6.d7e2d6c3.chunk.js",
"trimHeadFrames": 0,
"tags": {
"fetch.status": "500"
},
"extra": {
"session:duration": 9815
},
"breadcrumbs": {
"values": [
{
"timestamp": 1580853612.846,
"type": "http",
"category": "fetch",
"data": {
"method": "GET",
"url": "https://api.fitbit.com/1/user/-/profile.json",
"status_code": 500
}
}
]
},
"environment": "production",
"release": "release-63",
"event_id": "4a544fea0079441d8c0b356a1367d7bd"
}
And here is the response from the 500 error request:
{
"errors": [
{
"errorType": "request",
"fieldName": "n/a",
"message": "Cannot open connection\nPool state: jdbcUrl=jdbc:mysql://prod-api-master.site-ops.fitbit.com:4417/api?statementInterceptors=com.fitbit.hibernate.mysql.ZipkinMysqlStatementTracingInterceptor, numIdle=0, numBusy=6, numUnclosedOrphaned=0, numInUseByStatementDestroyers=6, numTotal=6, maxSize=6, numWaiting=30, numPendingTasks=0, numActiveTasks=0\nSQL query was ???"
}
],
"success": false
}
I have tried clearing site data on Chrome several times to request new auth tokens. I have also tried using Safari.
Thank you for your help!
- Kevin
Answered! Go to the Best Answer.
02-04-2020 14:24
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.
02-04-2020 14:24
There seems to be a temporary issue with the Fitbit backend. https://www.fitbitstatus.com/
Best Answer02-04-2020 14:24
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.
02-04-2020 14:24
There seems to be a temporary issue with the Fitbit backend. https://www.fitbitstatus.com/
Best Answer02-04-2020 17:02
02-04-2020 17:02
Oh nice, I should have checked status haha, thanks @JonFitbit!
Best Answer