03-19-2019 20:48
03-19-2019 20:48
Hello -
Around 12:36 PM CST, we started seeing a noticeable amount of 502 errors for some of our pull requests for data (in response to notifications from subscriptions) via the web API. It's now 10:40 PM CST, and looking at our logs the number of 502 response has been increasing during the day.
Can Fitbit assist?
Here's a common body that is appearing in the 502 response:
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>api.fitbit.com | 502: Bad gateway</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
<style type="text/css">body{margin:0;padding:0}</style>
</head>
<body>
<div id="cf-wrapper">
<div id="cf-error-details" class="cf-error-details-wrapper">
<div class="cf-wrapper cf-error-overview">
<h1>
<span class="cf-error-type">Error</span>
<span class="cf-error-code">502</span>
<small class="heading-ray-id">Ray ID: 4ba4a0574d39550a • 2019-03-20 03:33:44 UTC</small>
</h1>
<h2 class="cf-subheadline">Bad gateway</h2>
</div><!-- /.error-overview -->
<div class="cf-section cf-highlight cf-status-display">
<div class="cf-wrapper">
<div class="cf-columns cols-3">
<div id="cf-browser-status" class="cf-column cf-status-item cf-browser-status ">
<div class="cf-icon-error-container">
<i class="cf-icon cf-icon-browser"></i>
<i class="cf-icon-status cf-icon-ok"></i>
</div>
<span class="cf-status-desc">You</span>
<h3 class="cf-status-name">Browser</h3>
<span class="cf-status-label">Working</span>
</div>
<div id="cf-cloudflare-status" class="cf-column cf-status-item cf-cloudflare-status ">
<div class="cf-icon-error-container">
<i class="cf-icon cf-icon-cloud"></i>
<i class="cf-icon-status cf-icon-ok"></i>
</div>
<span class="cf-status-desc">Chicago</span>
<h3 class="cf-status-name">Cloudflare</h3>
<span class="cf-status-label">Working</span>
</div>
<div id="cf-host-status" class="cf-column cf-status-item cf-host-status cf-error-source">
<div class="cf-icon-error-container">
<i class="cf-icon cf-icon-server"></i>
<i class="cf-icon-status cf-icon-error"></i>
</div>
<span class="cf-status-desc">api.fitbit.com</span>
<h3 class="cf-status-name">Host</h3>
<span class="cf-status-label">Error</span>
</div>
</div>
</div>
</div><!-- /.status-display -->
<div class="cf-section cf-wrapper">
<div class="cf-columns two">
<div class="cf-column">
<h2>What happened?</h2>
<p>The web server reported a bad gateway error.</p>
</div>
<div class="cf-column">
<h2>What can I do?</h2>
<p>Please try again in a few minutes.</p>
</div>
</div>
</div><!-- /.section -->
<div class="cf-error-footer cf-wrapper">
<p>
<span class="cf-footer-item">Cloudflare Ray ID: <strong>4ba4a0574d39550a</strong></span>
<span class="cf-footer-separator">•</span>
<span class="cf-footer-item"><span>Your IP</span>: 216.235.66.3</span>
<span class="cf-footer-separator">•</span>
<span class="cf-footer-item"><span>Performance & security by</span> <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=error_footer" id="brand_link" target="_blank">Cloudflare</a></span>
</p>
</div><!-- /.error-footer -->
</div><!-- /#cf-error-details -->
</div><!-- /#cf-wrapper -->
</body>
</html>
Answered! Go to the Best Answer.
03-20-2019 12:49
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-20-2019 12:49
Hi @JayMC ... this problem should be resolved now. Let me know if you're still receiving 502 error messages.
Best Answer03-20-2019 11:15
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-20-2019 11:15
Hi @JayMC
Thanks for letting us know. We are investigating the problem and will report an update shortly.
Best Answer03-20-2019 12:49
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-20-2019 12:49
Hi @JayMC ... this problem should be resolved now. Let me know if you're still receiving 502 error messages.
Best Answer03-20-2019 13:56
03-20-2019 13:56
Looks good. Thank you very much.
Best Answer03-20-2019 18:04
03-20-2019 18:04
Still not working for me. Using Alta, MacBook, tried Safari, Firefox, Chrome and Opera.
Best Answer03-20-2019 18:16
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-20-2019 18:16
Hi @guppy13991
Would you please tell me what type of API calls you're executing when receiving the 502 error message. Also, please send me a screen shot or the full text of the error you are receiving
Best Answer03-20-2019 18:19
03-20-2019 18:19
Never mind
Best Answer04-04-2019 17:17
04-04-2019 17:17
5:00 pm, Mountain Time, still getting the 502
Best Answer04-05-2019 14:38
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
04-05-2019 14:38
The Fitbit site was down yesterday afternoon (https://www.fitbitstatus.com/). That might have caused your 502 errors.
Are you still getting the 502 errors today?
Best Answer10-02-2020 21:33
10-02-2020 21:33
Greetings ,
my Fitbit scale is also showing error . Did everything captured with removing batteries and waiting , yet not resolved . Kindly advice
Best Answer10-07-2020 07:12
10-07-2020 07:12
Never mind
Best Answer