10-06-2014 18:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-06-2014 18:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
10-06-2014 21:25 - edited 10-06-2014 21:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
10-06-2014 21:25 - edited 10-06-2014 21:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-06-2014 22:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-06-2014 20:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello, you can always check fitbit api server status at: http://status.fitbit.com/
Exactly API requst are you sending?
Senior Software Developer at Fitbit

10-06-2014 21:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-06-2014 21:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
10-06-2014 21:25 - edited 10-06-2014 21:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-06-2014 22:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-06-2014 22:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
10-06-2014 22:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-07-2014 09:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
10-07-2014 09:03 - edited 10-07-2014 09:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-07-2014 09:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Okay, so is the new java library available from Fitbit with the said changes ?

10-07-2014 09:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
10-07-2014 09:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-07-2014 09:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
10-07-2014 09:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-07-2014 10:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
10-07-2014 11:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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:

