08-11-2015 08:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-11-2015 08:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm seeing a bunch of junk in the response body that I normally extract a token and secret from (see below). Saw a bunch of these between 2015-08-11 13:17:34.655 and 2015-08-11 14:23:13.672
Anyone else running into this?
<!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>Access denied | www.fitbit.com used CloudFlare to restrict access</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>
<!--[if lte IE 9]><script type="text/javascript" src="/cdn-cgi/scripts/jquery.min.js"></script><![endif]-->
<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/zepto.min.js"></script><!--<![endif]-->
<script type="text/javascript" src="/cdn-cgi/scripts/cf.common.js"></script>
</head>
<body>
<div id="cf-wrapper">
<div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
<div id="cf-error-details" class="cf-error-details-wrapper">
<div class="cf-wrapper cf-header cf-error-overview">
<h1>
<span class="cf-error-type" data-translate="error">Error</span>
<span class="cf-error-code">1010</span>

08-11-2015 09:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
08-11-2015 09:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Could you please provide the API endpoint you were trying to reach?

08-11-2015 10:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-11-2015 10:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm now also seeing the original error I posted and this one:
"The owner of this website (www.fitbit.com) has banned your access based on your browser's signature (2145826857780f33-ua21)"

08-11-2015 10:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



08-11-2015 10:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Reiterating what @SunsetRunner said: Could you please provide the API endpoint you were trying to reach?

08-11-2015 11:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-11-2015 11:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
It seems to be related to hitting the endpoint that normally gave us the OAuth redirect url. I'm digging to verify that now but that is what looks to be the problem.

08-11-2015 11:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



08-11-2015 11:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
If you're using OAuth 1.0a, be sure that only user-facing URLs are using www subdomain. Your app should always be communicating with api subdomain.
OAuth 1.0a: Temporary Credentials (Request Token) URL:
https://api.fitbit.com/oauth/request_token
OAuth 1.0a: Token Credentials (Access Token) URL:
https://api.fitbit.com/oauth/access_token
OAuth 1.0a: Authorize URL:
https://www.fitbit.com/oauth/authorize

