Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

REST API always returning internal error

ANSWERED

When I make a request to any resource I get a internal error. I believe this is an error of the Fitbit Rest API, not my client error. This is happening when I'm using my clients, or even when I'm using the Fitbit client itself (https://dev.fitbit.com/build/reference/web-api/explore).


https://api.fitbit.com/1/user/-/activities/list.json?beforeDate=today&sort=asc&offset=0&limit=100
The following error is returned:

{
  "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=20, numPendingTasks=0, numActiveTasks=0\nSQL query was ???"
    }
  ],
  "success": false
}

 

Best Answer
1 BEST ANSWER

Accepted Solutions

Hi @douglasrafaelcg @LucasRochaDev,

 

We identified an issued yesterday that resulted in the APIs returning 500s for a short period of time and was quickly mitigated. You can check the notes at our status page https://www.fitbitstatus.com/ and subscribe to alerts if you have not done so already.

 

If you haven't already, please retry your requests.

 

Let me know if you have any questions.

View best answer in original post

Best Answer
2 REPLIES 2

This happened to me too. I even imagined that it was an error of implementation of my clients in my REST API, however when consuming the routes through Swagger Fitbit, the error persists. It would be interesting if this error was resolved as soon as possible.

Best Answer

Hi @douglasrafaelcg @LucasRochaDev,

 

We identified an issued yesterday that resulted in the APIs returning 500s for a short period of time and was quickly mitigated. You can check the notes at our status page https://www.fitbitstatus.com/ and subscribe to alerts if you have not done so already.

 

If you haven't already, please retry your requests.

 

Let me know if you have any questions.

Best Answer