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

Server returned HTTP response code: 403

Hello! For my university thesis project, i'm doing a web application. The application downloads data of a small number of volunteer patients. I needed the intraday data and for this reason I contacted Fitbit for have the access to the intraday time seriesThe Fitbit answer was "Your application sholud now have access".

Ok.. the problem is that today I sent this request: "https://api.fitbit.com/1/user/62VPDJ/activities/list.json?afterDate=2017-05-22&sort=asc&limit=50&off..."

where 62VPDJ was a volunteer's encodedId.

In eclipse, the answer was: java.io.IOException: Server returned HTTP response code: 403 for URL: https://api.fitbit.com/1/user/62VPDJ/activities/list.json?afterDate=2017-05-22&sort=asc&limit=50&off...

I don't understand why. Can someone help me? Thank you:)

Best Answer
0 Votes
1 REPLY 1

@daianabellama, the 403 normally returned when you try to make request to the resource you don't have access to. Also response from Fitbit most likely will return an error message explaining why you received back 403. Can you please post what the body of the response that generates 403?

Best Answer
0 Votes