Title: Sync Failed with errors: 413 error
Last modified: January 17, 2020

---

# Sync Failed with errors: 413 error

 *  [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/)
 * Hi,
    Fails to sync: 413 Error: The Shopify data is too large for your server 
   to handle This error occured while calling WP_Shopify\processing\images:process
   on line 34.
 * Similar errors on lines 38 an 40.
 * I have reviewed all the Possible solution doc for this error and seem to exceed
   all of the requirements, but I’m not sure about any SQL size issues. I have reviewed
   PHP/Appache/NginX and all seems fine. Rreviewed the Shopify app settings too.
 * Would like to see it work b4 going with the pro version.
 * Help would be appreciated.
    Larry
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsync-failed-with-errors-413-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/page/2/?output_format=md)

 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12338256)
 * I should add that my hosting support reviewed the server reqs too and could find
   no issue.
    Larry
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12339750)
 * Hi,
 * I wish the message “data is too large for your server” with line numbers I can’t
   look up was more helpful in determining what limit was encountered. The 413 error
   is not a shopify error, it is coming from the plugin.
    Here are some config details:
   [https://mcbrady-mcmahon.us/phpinfo.php](https://mcbrady-mcmahon.us/phpinfo.php)
   PHP 7.2 WP 5.3.2 max_execution_time 6000 max_file_uploads 20 post_max_size 500M
   memory_limit 2000M upload_max_filesize 128M NginX 512M apache/PHP max size 128M
   Connection Green, no firewall issues. WP disk space allowed is “unlimited” with
   some 12G available.
 * So what config setting is too small?
 * Larry
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12339780)
 * Hi,
 * In the readme.txt says “Requires PHP: 5.6”.
    The min requirement listing says“
   PHP 5.6 or greater”
 * Is anyone else using PHP 7.2?
 * Maybe I will try the PHP compatibility checker.
 * Larry
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12341681)
 * Hi, Well the PHP Checker says Shopify is to be to check. So I tried using PHP
   5.6 and 7.0, but still get the error so I went back to 7.2.
 * I tracked line numbers for these errors to this code for each of the failures:
   
   if ( $this->expired_from_server_issues($items, __METHOD__, __LINE__) ) { return;
 * This made me think it was an SSL or firewall issue, but my SSL is working just
   fine.
    I can’t add “.myshopify.com” to my firewall, but I did add 23.227.38.65
   which made no difference. Not really sure what IP address, but I tried this one
   even though the Connect indicator is green in the Shopify Connection screen.
 *  Plugin Author [andrewmrobbins](https://wordpress.org/support/users/andrewmrobbins/)
 * (@andrewmrobbins)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12345382)
 * [@larry-mcmahon](https://wordpress.org/support/users/larry-mcmahon/)
 * Hey Larry,
 * First, apologies for the delay in getting back to you.
 * The plugin requires at least PHP 5.6, so the language in the readme.txt could
   be improved.
 * Regarding the “data is too large for your server to handle” error, this is usually
   a database error. Sometimes this happens if you have products with exceptionally
   long descriptions inside Shopify or something similar.
 * Can you try changing the `Items per request` setting to 20, and also enabling`
   Synchronous requests`? Adjusting these will force the syncing process to “chunk”
   the data into more manageable processes which should help your web server.
 * Let me know if this helps!
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12346611)
 * Hi,
 * No problem, it is a holiday weekend.
 * I set the items per request to twenty. Sync requests is on. Then tried 10 items.
   
   The error persists.
 * I did not set up shopify, so I have no idea how long the descriptions are but
   will check.
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12346617)
 * Hi,
 * Some of the titles are a bit long:
    MORSE MODEL 24 CLAMP+GO DOLLY HANDLE (PATENTED
   DESIGN), DETACHABLE & ADJUSTS FOR 2″ TO 3″ DRUM DOLLY SIDEWALL. US Patent # US8424886
 * But the descriptions seem short or blank and not many images have been addded
   yet.
 * Larry
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12350401)
 * hi,
 * Just to be clear, the 413 Error did not go away after making those adjustments,
   which I had tried b4 as they are part of your troubleshooting documentation.
 * Larry
 *  Plugin Author [andrewmrobbins](https://wordpress.org/support/users/andrewmrobbins/)
 * (@andrewmrobbins)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12350651)
 * [@larry-mcmahon](https://wordpress.org/support/users/larry-mcmahon/)
 * Hey Larry,
 * Thanks for the additional info. I just checked the plugin to see what the length
   restrictions is for product titles and it appears to be larger than the title
   you provided. So I don’t think that’s the issue.
 * I’ll need to debug further using your Shopify API credentials. Would you mind
   emailing me here: [hello@wpshop.io](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/hello@wpshop.io?output_format=md)
   and reference this forum thread? If you can provide me the API credentials you
   have set within the Connect tab then I can find the root cause within my test
   environment.
 * Thanks!
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12350916)
 * Hi,
    Let me know if you need anything else. Larry
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12355476)
 * Hi,
 * I increased some of the php limits. Working on upgrade to php 7.3. Just need 
   the wp sql extension.
 * Reviewed some Security settings. Allowed access to xmlrpc.php.
    Some other tweaks,
   but nothing yet.
 * Larry
 *  Plugin Author [andrewmrobbins](https://wordpress.org/support/users/andrewmrobbins/)
 * (@andrewmrobbins)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12358434)
 * [@larry-mcmahon](https://wordpress.org/support/users/larry-mcmahon/)
 * Hey Larry, I should have a response for you soon. Thanks for being patient.
 *  Plugin Author [andrewmrobbins](https://wordpress.org/support/users/andrewmrobbins/)
 * (@andrewmrobbins)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12361881)
 * [@larry-mcmahon](https://wordpress.org/support/users/larry-mcmahon/)
 * I just finished testing your store using the development version of the plugin.
 * The sync finished fine (no 413 error). However no products were synced. I believe
   this is due to one of two things:
 * Either your products are not assigned to the custom “sales channel” you made,
   or you don’t have the proper API permissions set within your Shopify private 
   app.
 * Can you make sure to review steps 2-7 on from doc article? [https://docs.wpshop.io/#/getting-started/syncing](https://docs.wpshop.io/#/getting-started/syncing)
 * In particular, make sure you have “read and write” set for everything.
 * Let me know if this helps!
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12364676)
 * Hi.
 * I deleted the exiting Shopify APP and recreated it using the doc article.
    None
   of the products had been available to a Sales Channel or APP, so I made them 
   available to all sales channels and the newly created APP. There are no collection,
   maybe that causes a problem? I updated the APP info in the Shopify Plugin settings.
   I reviewed these for R/W: Product Information Customer details and customer groups
   Orders, transactions and fulfillments Price rules Products, variants and collections
   However, there is no “Price Rules”. This is RW: Discounts – PriceRule REST and
   GraphQL API read_price_rules, write_price_rules
 * Tried changes to sync Type Lite or Post and just get fewer 413s under lite.
 * No change, still the 413 error.
 * The products and collections pages must be created by by the plugin?
    There is
   a [https://mcbrady-mcmahon.us/products/](https://mcbrady-mcmahon.us/products/)
   page with some items, but no products of collections data listed under the dashboard
   shopify tab. Not clear to me what is going on. Will talk to my client about the
   site activities..
 * What next?
 * Larry
    BTW PHP 7.3 is now in use.
 *  Thread Starter [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * (@larry-mcmahon)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/#post-12364726)
 * Hi,
 * So I changed the number of products/page to 20 and [https://mcbrady-mcmahon.us/products/](https://mcbrady-mcmahon.us/products/)
   does change to reflect this. So this page is being generated by WP-Shopify.
 * How can there be a product on a Page w/o a working sync or products listed in
   the Shopify Products tab?
 * The page with images is poorly laid out as the images are not the same size even
   though 70×70 has been set for the image size.
 * Larry

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/page/2/?output_format=md)

The topic ‘Sync Failed with errors: 413 error’ is closed to new replies.

 * ![](https://ps.w.org/wpshopify/assets/icon.svg?rev=2740857)
 * [ShopWP](https://wordpress.org/plugins/wpshopify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpshopify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpshopify/)
 * [Active Topics](https://wordpress.org/support/plugin/wpshopify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpshopify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpshopify/reviews/)

 * 21 replies
 * 2 participants
 * Last reply from: [Larry McMahon](https://wordpress.org/support/users/larry-mcmahon/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/sync-failed-with-errors-413-error/page/2/#post-12370236)
 * Status: not resolved