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/"
...
|
authorization: env.REQUEST_SECRET, |
|
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?
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:
apps/apps/products-feed/src/pages/api/feed/[url]/[channel]/google.xml.ts
Line 88 in 9a030df
apps/apps/products-feed/src/lib/metadata-manager.ts
Line 105 in 9a030df
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?