• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Python Module Parsing Error despite valid JSON

sunstorm

Member
Hi Team

Since I work on metafields JSON received from Shopify, some of these JSONs can be pretty large. I am using Code (Python) by Pabbly to parse them and generate appropriate output. It is working well in most of the cases.

However, in one particular instance, this (Code Pabbly) failed. I am getting an error "unexpected character after line continuation character (<string>, line 3)" which is inside the JSON. I have double checked and this appears to be a valid JSON - it is anyway coming directly from Shopify. You can check webhook response D of the workflow mentioned below by me to investigate the same.

Please let me know if you need any other inputs to check this out.
 

Preeti Paryani

Well-known member
Staff member
Hello @sunstorm,

Upon checking now for Response D, the code by Pabbly action seems to be working fine. Please check it on your end and let us know if it works fine for you.
 

sunstorm

Member
Hi Team

Just checked. Response D is indeed working fine now.

However, Response C is still throwing an error in Step 5. Code (Python) by Pabbly
 

Preeti Paryani

Well-known member
Staff member
Hello @sunstorm,

Thank you for bringing this to our attention. Our team has thoroughly investigated the issue and attempted multiple workarounds to resolve it. However, the problem appears to stem from the response received in Step 3 of your workflow.

We recommend reaching out to Shopify Support for further clarification, as the JSON response seems to contain certain characters that are causing it to break. They should be able to provide insights into the issue and possible solutions.

Let us know if you need any further assistance!
 

sunstorm

Member
Hi Team

Figured out a workaround. The issue was happening mainly due to one of the "rich text" metafields containing multiple paragraphs. I wasn't using it anymore and so have chosen to delete it from my store. That appears to have resolved the issue for now.
 
Top