Skip to content

Encoding compatibility error when fetching tickets #592

@Hessah95

Description

@Hessah95

Hello there 👋

After upgrading ruby from 3.2.9 to 3.3.0, I noticed fetching tickets with ZendeskAPI::Ticket.find(ZENDESK_CLIENT, id: id) is returning the following error:

Encoding::CompatibilityError
invalid byte sequence in UTF-8

I made it work by adding:

ZENDESK_CLIENT.connection.headers['Accept-Encoding'] = 'identity' 

But is there a better way to address or resolve this issue?

  • My current versions:
    ruby (3.3.0)
    zendesk_api (1.37.0)

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