Skip to content

check_response fails to retry on expired api_key #26

@cyrilchampier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions