Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/696925ea-1264-800c-8cec-22fafd520907
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: Here’s what’s going on in your n8n issue “I am losing my sanity” and how you can fix it: === Here’s what’s going on in your n8n issue (“I am losing my sanity”) and how you can fix it: ===== 🔍 What’s the problem? ===== You’re making HTTP requests to Shopify inside n8n and sometimes the product titles come back as Chinese-looking gibberish, instead of Greek. This happens when the number of products requested is less than 54 — but when you request 54 or more products, the Greek text returns normally. n8n Community<ref>{{cite web|title=n8n Community|url=https://community.n8n.io/t/i-am-losing-my-sanity/250451|publisher=n8n Community|access-date=2026-01-16}}</ref> Example outputs: | Products Requested | Result | | ------------------ | ----------------------------------- | | 2 | 危蔚蟿 74 蟽蠁蟻… (garbled) | | 54 | <code>"Σετ 74 σφραγίδες…" (proper Greek) | This clearly points to a character encoding issue rather than a Shopify bug. ==== ✅ Likely Root Cause: Encoding/charset handling in HTTP Request ==== When Shopify returns text it normally uses UTF-8 encoding. However n8n’s HTTP Request node might be mis-interpreting the response’s character set in some cases — especially if: * the response does not explicitly include a Content-Type: charset=utf-8 header * the HTTP request node isn’t configured to force UTF-8 decoding * the payload is being read as binary or default system encoding This can happen on smaller responses where Shopify might use slightly different headers. The weird characters you’re seeing are almost certainly UTF-8 being misread as another encoding. ==== 🛠 How to Fix / Workaround ==== ===== ✅ 1. Force UTF-8 parsing ===== In your HTTP Request node: # Set Response Format → String # Add header: </code>`<code> Accept-Charset: utf-8 <syntaxhighlight>3. If you have control over headers, also add: </syntaxhighlight> Content-Type: application/json; charset=utf-8 <syntaxhighlight> This explicitly tells n8n to parse the response as UTF-8. ===== ✅ 2. Try reading raw binary and converting manually ===== Instead of interpreting it as JSON/text immediately, you can do: # In HTTP Request node: - Response Format → Buffer/Binary # Pass buffer into a Function Node: </syntaxhighlight>js const buf = items[0].binary.data; // adjust if different key const str = buf.toString('utf8'); // enforce UTF-8 return [{ json: JSON.parse(str) }]; </code>`` This ensures the text is decoded as UTF-8 manually. ===== ✅ 3. Check Shopify API pagination ===== If you’re requesting fewer products via pagination (e.g., cursors), the API might return slightly different content or headers. Make sure both requests use the same Accept headers as in the working larger request. ===== 📌 Extra Tips ===== ✔️ Use the latest Shopify GraphQL / REST endpoints — older ones can sometimes omit proper charset headers. ✔️ If possible, test the same requests using curl and inspect the raw headers — this will confirm whether the charset header is missing. ✔️ Always set your HTTP Request node to explicitly expect UTF-8 when dealing with Unicode text. ==== 📌 Summary ==== Your issue is not a bug in Shopify or n8n per se, but almost certainly a charset interpretation problem: ✅ Shopify sends UTF-8 — but the smaller API response sometimes doesn’t include charset info ✅ n8n defaults to another encoding when charset is missing ✅ You can fix it by forcing UTF-8 parsing either via headers or manual decoding. n8n Community<ref>{{cite web|title=n8n Community|url=https://community.n8n.io/t/i-am-losing-my-sanity/250451|publisher=n8n Community|access-date=2026-01-16}}</ref> If you want, share the exact HTTP Request node config and response headers you’re seeing and I can tailor the steps specifically to your workflow.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)