Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signify error code 104 as an AuthenticationError #630

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/koala/api/graph_error_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(http_status, body, headers)

# Facebook has a set of standardized error codes, some of which represent problems with the
# token.
AUTHENTICATION_ERROR_CODES = [102, 190, 450, 452, 2500]
AUTHENTICATION_ERROR_CODES = [102, 190, 450, 452, 2500, 104].freeze

# Facebook can return debug information in the response headers -- see
# https://developers.facebook.com/docs/graph-api/using-graph-api#bugdebug
Expand Down
2 changes: 1 addition & 1 deletion spec/cases/graph_error_checker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Koala
module Facebook
RSpec.describe GraphErrorChecker do
it "defines a set of AUTHENTICATION_ERROR_CODES" do
expect(GraphErrorChecker::AUTHENTICATION_ERROR_CODES).to match_array([102, 190, 450, 452, 2500])
expect(GraphErrorChecker::AUTHENTICATION_ERROR_CODES).to match_array([102, 190, 450, 452, 2500, 104])
end

it "defines a set of DEBUG_HEADERS" do
Expand Down