Skip to content

check_response fails to retry on expired api_key #26

Description

@cyrilchampier

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions