10-06-2014 18:22
10-06-2014 18:22
I'm getting a "No data received" error while sending the form, using Google Chrome. Does anyone know if something is wrong with the server, and if it is being fixed? Thanks.
Answered! Go to the Best Answer.
10-06-2014 21:25 - edited 10-06-2014 21:25
10-06-2014 21:25 - edited 10-06-2014 21:25
Hi, I just tried registering a new application using Chrome (version 37) and it succeeded. Can you try in a different browser (without any extensions) and see if you have the same issue?
10-06-2014 22:08
10-06-2014 22:08
I registered my application using another computer without errors.
Thank you for your assistence.
I was starting to think mine was a dummy problem with such an easy solution.
Regards.
10-06-2014 20:03
10-06-2014 20:03
Hello, you can always check fitbit api server status at: http://status.fitbit.com/
Exactly API requst are you sending?
10-06-2014 21:14
10-06-2014 21:14
Hi! Thanks for your response.
I'm just trying to register my app here: https://dev.fitbit.com/apps/new
I want to do the very first step, to get my API consumer key and secret so my application has access to Fitbit API.
Regards,
10-06-2014 21:25 - edited 10-06-2014 21:25
10-06-2014 21:25 - edited 10-06-2014 21:25
Hi, I just tried registering a new application using Chrome (version 37) and it succeeded. Can you try in a different browser (without any extensions) and see if you have the same issue?
10-06-2014 22:00
10-06-2014 22:00
Hi, thanks for the reply.
My Chrome version is 37 too.
And yes, I tried with Firefox version 23 and Safary version 7
I'm getting an 504 Gateway Timeout Error.
Regards,
10-06-2014 22:08
10-06-2014 22:08
I registered my application using another computer without errors.
Thank you for your assistence.
I was starting to think mine was a dummy problem with such an easy solution.
Regards.
10-06-2014 22:09
10-06-2014 22:09
@Ariadna wrote:
I registered my application using another computer without errors.
Thank you for your assistence.
I was starting to think mine was a dummy problem with such an easy solution.
Regards.
I'm glad that worked. I dug through our logs and could not find an instance where that page returned any errors.
10-07-2014 09:01
10-07-2014 09:01
Hi,
I am using Fitbit java library jar named fitbit4j-1.0.25.jar and I am getting following exception now
com.fitbit.api.FitbitAPIException: 400: The request was invalid. An accompanying error message will explain why.
{"errors":[{"errorType":"request","fieldName":"n/a","message":"This request should use https protocol."}],"success":false}
at com.fitbit.api.client.http.HttpClient.httpRequest(HttpClient.java:460)
at com.fitbit.api.client.http.HttpClient.get(HttpClient.java:398)
at com.fitbit.api.client.FitbitApiClientAgent.httpGet(FitbitApiClientAgent.java:2784)
at com.fitbit.api.client.FitbitApiClientAgent.httpGet(FitbitApiClientAgent.java:2734)
at com.fitbit.api.client.FitbitApiClientAgent.getDevices(FitbitApiClientAgent.java:1159)
10-07-2014 09:03 - edited 10-07-2014 09:03
10-07-2014 09:03 - edited 10-07-2014 09:03
@aditya14641 wrote:
Hi,
I am using Fitbit java library jar named fitbit4j-1.0.25.jar and I am getting following exception now
com.fitbit.api.FitbitAPIException: 400: The request was invalid. An accompanying error message will explain why.
{"errors":[{"errorType":"request","fieldName":"n/a","message":"This request should use https protocol."}],"success":false}
at com.fitbit.api.client.http.HttpClient.httpRequest(HttpClient.java:460)
at com.fitbit.api.client.http.HttpClient.get(HttpClient.java:398)
at com.fitbit.api.client.FitbitApiClientAgent.httpGet(FitbitApiClientAgent.java:2784)
at com.fitbit.api.client.FitbitApiClientAgent.httpGet(FitbitApiClientAgent.java:2734)
at com.fitbit.api.client.FitbitApiClientAgent.getDevices(FitbitApiClientAgent.java:1159)
Please see https://community.fitbit.com/t5/Web-API/HTTPS-required-starting-Monday-Nov-3-2014/m-p/528696
10-07-2014 09:06
10-07-2014 09:06
Okay, so is the new java library available from Fitbit with the said changes ?
10-07-2014 09:08
10-07-2014 09:08
@aditya14641 wrote:
Okay, so is the new java library available from Fitbit with the said changes ?
Fitbit4j is deprecated and no longer being actively supported. The source code for it is readily available on our Github and you can freely modify it. https://github.com/Fitbit/fitbit4j
10-07-2014 09:11
10-07-2014 09:11
Ok, got it, so is there any different java library available which I can readily use though since fitbit4j is deprecated and not supported for future changes ?
10-07-2014 09:14
10-07-2014 09:14
@aditya14641 wrote:
Ok, got it, so is there any different java library available which I can readily use though since fitbit4j is deprecated and not supported for future changes ?
Yes, you can use any number of OAuth 1 libraries available in Java, such as oauth-signpost.
10-07-2014 10:36
10-07-2014 10:36
Hi dchen,
Thanks, however, our application is already in production since sometime using fitbit4j, can we somehow get some help to fix this library for new changes, we can fix it an create jar on our end. It would be great if we are able to modify exisiting library from the perspective of our application that relies on fitbit api calls
Regards
Aditya
10-07-2014 11:17
10-07-2014 11:17
Yes, you can modify the FitbitApiClientAgent.java file to use the https://api.fitbit.com base URL for all API calls. Take a look at this line in the code: