• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

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