Skip to content

source-pendo: escape " and \ in filter expressions#4477

Open
Alex-Bair wants to merge 1 commit into
mainfrom
bair/source-pendo-escape-identifiers
Open

source-pendo: escape " and \ in filter expressions#4477
Alex-Bair wants to merge 1 commit into
mainfrom
bair/source-pendo-escape-identifiers

Conversation

@Alex-Bair
Copy link
Copy Markdown
Member

@Alex-Bair Alex-Bair commented May 14, 2026

Description:

Some users have identifiers in Pendo that contain the special character ", and it's suspected that not escaping " in these identifiers is causing issues with aggregation requests:

capture.Account.incremental: Encountered HTTP error status 400 which cannot be retried.
URL: https://us1.app.pendo.io/api/v1/aggregation
Response:
Cannot parse filter expression

This commit escapes " and \ when using identifiers in aggregation requests, which should fix the issue.

Note: I saw this Pendo doc states:

Don't use \ or " or invalid UTF-8 characters in an Account ID. These characters can result in errors in Pendo.

So... it's possible some other Pendo side error will occur & this won't unblock captures for users who use \ or " in their account ids. If that's the case, we'll need to revisit & investigate further.

Notes for reviewers:

I'm unable to reproduce the issue since we don't have a dev Pendo account, so this is based purely off of the details provided in the user's bug report. The bug makes sense & definitely seems like an issue, but I wasn't able to directly confirm that the bug is what's causing the Cannot parse filter expression failure.

Some users have identifiers that contain the special character `"`, and
it's suspected that not escaping `"` is causing issues with aggregation
requests:

```
capture.Account.incremental: Encountered HTTP error status 400 which cannot be retried.
URL: https://us1.app.pendo.io/api/v1/aggregation
Response:
Cannot parse filter expression
```

This commit escapes `"` and `\` when using identifiers in aggregation
requests, which should fix the issue.

Note: I saw this [Pendo doc](https://support.pendo.io/hc/en-us/articles/21326198721563-Choose-IDs-and-metadata)
states:
> Don't use \ or " or invalid UTF-8 characters in an Account ID. These characters can result in errors in Pendo.

So... it's possible some other Pendo side error will occur & this won't
unblock captures for users who use `\` or `"` in their account ids. If
that's the case, we'll need to revisit & investigate further.
@Alex-Bair Alex-Bair marked this pull request as ready for review May 14, 2026 19:46
@Alex-Bair Alex-Bair requested a review from a team May 14, 2026 19:47
Copy link
Copy Markdown
Contributor

@nicolaslazo nicolaslazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants