Skip to content

Conversation

@dscataglini
Copy link

@dscataglini dscataglini commented Jun 4, 2021

Array#include? != String#include?
[error, content].include?('access_token is invalid')
is looking for an exact string match. The error message returned by Pardot is a much longer string though.
So, even though the AccessToken is Expired, the correct error is never raised

@dscataglini dscataglini changed the title Array#include? != String#include? AccessTokenExpiredError is never raised even when it's expired Jun 4, 2021
@adelawalla adelawalla merged commit 1c1eb41 into pardot:master Jun 10, 2021
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

Successfully merging this pull request may close these issues.

3 participants