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

check_response fails to retry on expired api_key #26

Open
cyrilchampier opened this issue May 12, 2016 · 0 comments
Open

check_response fails to retry on expired api_key #26

cyrilchampier opened this issue May 12, 2016 · 0 comments

Comments

@cyrilchampier
Copy link

Pardot::ResponseError: Invalid API key or user key

[GEM_ROOT]/bundler/gems/ruby-pardot-837bae6ead90/lib/pardot/http.rb:56 in check_response
[GEM_ROOT]/bundler/gems/ruby-pardot-837bae6ead90/lib/pardot/http.rb:19 in post
[GEM_ROOT]/bundler/gems/ruby-pardot-837bae6ead90/lib/pardot/objects/prospects.rb:65 in post
[GEM_ROOT]/bundler/gems/ruby-pardot-837bae6ead90/lib/pardot/objects/prospects.rb:34 in read_by_email

It seems that line if [error, content].include?("Invalid API key or user key") && @api_key
fail to catch the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant