{"id":3446,"date":"2014-03-25T11:24:32","date_gmt":"2014-03-25T11:24:32","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/25\/unknown-oauthexception-when-iterating-over-pagination-collection-of-common-programming-errors\/"},"modified":"2014-03-25T11:24:32","modified_gmt":"2014-03-25T11:24:32","slug":"unknown-oauthexception-when-iterating-over-pagination-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/25\/unknown-oauthexception-when-iterating-over-pagination-collection-of-common-programming-errors\/","title":{"rendered":"&ldquo;unknown&rdquo; OAuthException when iterating over pagination-Collection of common programming errors"},"content":{"rendered":"<p>I get this error semi regularly when iterating over pagination of a user&#8217;s feed (ala https:\/\/graph.facebook.com\/user_id\/feed)<\/p>\n<pre><code>{\"error\":{\"message\":\"An unknown error has occurred.\",\"type\":\"OAuthException\",\"code\":1}}\n<\/code><\/pre>\n<p>If I adjust my limits, sometimes I can get it to work, however, sometimes even adjusting down to 1 doesn&#8217;t work. If I adjust the until value, I can sometimes get it to work as well.<\/p>\n<p>It&#8217;s as if there&#8217;s corrupt data on facebook&#8217;s end that I have to force it to skip over. Is there an appropriate\/best practice way to handle this situation?<\/p>\n<p>Because it works for the majority of the user&#8217;s feed accesses, it seem that it isn&#8217;t a access token issue, but actually a bug on facebook&#8217;s side.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I get this error semi regularly when iterating over pagination of a user&#8217;s feed (ala https:\/\/graph.facebook.com\/user_id\/feed) {&#8220;error&#8221;:{&#8220;message&#8221;:&#8221;An unknown error has occurred.&#8221;,&#8221;type&#8221;:&#8221;OAuthException&#8221;,&#8221;code&#8221;:1}} If I adjust my limits, sometimes I can get it to work, however, sometimes even adjusting down to 1 doesn&#8217;t work. If I adjust the until value, I can sometimes get it to work [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3446","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3446"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3446\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}