Skip to content

products-feed: RESPONSE_KEY/SECRET_KEY having non-ascii characters breaks google.xml generation #2236

@djkato

Description

@djkato

When the RESPONSE_KEY or SECRET_KEY has non-ascii characters or symbols, the product feed app breaks and returns {"error":"Internal server error"} when trying to preview the google.xml feed.
examle .env for products-feed that breaks the app:

REQUEST_SECRET="íôéššôťí-ščíšô-taíÁôshrioty^#-*-*jhúxžk-jh/"
SECRET_KEY="íôéššôťí-ščíšô-taíÁôshrioty^#-*-*jhúxžk-jh/"
...

encryptionKey: env.SECRET_KEY,

Issue could be on these lines, maybe the secret has to be made uri safe with encodeURI()? Or maybe saleor doesn't support non-ascii characers?

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