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

Unable to register an Application

ANSWERED

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.

Best Answer
0 Votes
2 BEST ANSWERS

Accepted Solutions

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?

View best answer in original post

Best Answer
0 Votes

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.

 

View best answer in original post

Best Answer
0 Votes
14 REPLIES 14

Hello, you can always check fitbit api server status at: http://status.fitbit.com/

Exactly API requst are you sending?

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

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,

Best Answer
0 Votes

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?

Best Answer
0 Votes

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,

Best Answer
0 Votes

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.

 

Best Answer
0 Votes

@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.

Best Answer
0 Votes

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)

Best Answer
0 Votes

@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

Best Answer
0 Votes

Okay, so is the new java library available from Fitbit with the said changes ?

Best Answer
0 Votes

@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

Best Answer
0 Votes

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 ?

Best Answer
0 Votes

@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.

Best Answer
0 Votes

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

Best Answer
0 Votes

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:

https://github.com/Fitbit/fitbit4j/blob/276a16388b12c5aefb783e8615bbfd61540625dc/fitbit4j/src/main/j...

Best Answer
0 Votes