API Exception pushing products

Product Mafia Products Forums Support Forum API Exception pushing products

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #58171
    AvatarKatieArnold92
    Participant

    Hey, I get an API exception when pushing products to my Shopify

    Here’s the exception

    phpish\shopify\ApiException: [400] Bad Request (https://big-viral-stuff.myshopify.com/admin/products.json) array ( 'options' => 'expected Array to be a Hash', ) in /homepages/23/d727245311/htdocs/www.productmafia.com/wp-content/plugins/Shopify_data_plugin/Shopify_data_plugin.php on line 461Array ( [method] => POST [uri] => https://big-viral-stuff.myshopify.com/admin/products.json [query] => Array ( ) [headers] => Array ( [X-Shopify-Access-Token] => dcf3a500111c9bb74dc71dabf236df45 [content-type] => application/json; charset=utf-8 ) [payload] => Array ( [product] => Array ( [title] => CROCHET KNITTED SCARF SHAWL [body_html] =>
    We all know that a fashion and warm scarf is absolutely a practical and thoughtful gift for your lover, families or friends! Wearing our Crochet Knitted Scarf Shawl in some occasions, you will immediately become the focus and catch some people’s eyes! Well made with excellent quality! Stretch & lightweight, modern & comfortable fit. A fabulous super-sized cozy companion keeps you warm in cold weather and seasons. Combined Fashion & Function letting you stand out of crowd! Not only a wrap sweater but also a shawl and can easily adjust it as a scarf as well, it deserves a little space in your closet.  Perfect for Travel & Vacations! Get yours now!
    [vendor] => ProductMafia [product_type] => ProductMafia [variants] => Array ( ) [options] => Array ( [0] => Array ( ) [1] => Array ( ) ) [images] => Array ( [0] => Array ( [src] => https://www.productmafia.com/wp-content/uploads/2019/10/Screen-Shot-2019-10-15-at-14.52.17.png ) [1] => Array ( [src] => https://www.productmafia.com/wp-content/uploads/2019/10/Screen-Shot-2019-10-15-at-14.52.29.png ) [2] => Array ( [src] => https://www.productmafia.com/wp-content/uploads/2019/10/Screen-Shot-2019-10-15-at-14.52.40.png ) [3] => Array ( [src] => https://www.productmafia.com/wp-content/uploads/2019/10/Screen-Shot-2019-10-15-at-14.52.56.png ) [4] => Array ( [src] => https://www.productmafia.com/wp-content/uploads/2019/10/Screen-Shot-2019-10-15-at-14.53.07.png ) ) ) ) ) Array ( [errors] => Array ( [options] => expected Array to be a Hash ) )
    #58177
    David LinderDavid Linder
    Keymaster

    Hello Katiem

    I just replied to your facebook message about this also, but if it’s ok with you, we will continue the conversion here?
    This might help other members who are having the same problem.

    I just tried the push to store myself and its working fine, also you are the only member to report this problem, but I will be m,ore than happy to trouble shoot this issue with you.

    1. Is this the ONLY shopify store that you have used on your account?
    2. Was you logged into shopify store in another tab when you pushed to store?
    3. Was you able to push ANY products to your store before you received this error? Have you tried pushing another product to your store? Are you getting this error with all prosducts?

    Thanks

    #58178
    David LinderDavid Linder
    Keymaster

    Hello Katiem

    I just replied to your facebook message about this also, but if it’s ok with you, we will continue the conversion here?
    This might help other members who are having the same problem.

    I just tried the push to store myself and its working fine, also you are the only member to report this problem, but I will be m,ore than happy to trouble shoot this issue with you.

    1. Is this the ONLY shopify store that you have used on your account?
    2. Was you logged into shopify store in another tab when you pushed to store?
    3. Was you able to push ANY products to your store before you received this error? Have you tried pushing another product to your store? Are you getting this error with all prosducts?

    Thanks

    #58188
    AvatarKatieArnold92
    Participant

    Hey,

    I’m getting this with all products, it is the only Shopify shop I have linked yeah and yes Shopify was open in a different tab.

    Thanks for your help

    #58201
    AvatarKatieArnold92
    Participant

    Hi just an update, I made a new Shopify and new account on here and it did it again, same error, but I also noticed this comes up when clicking on the product mafia app on Shopify

    
    Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() in /homepages/23/d727245311/htdocs/www.productmafia.com/wp-content/plugins/Shopify_data_plugin/vendor/autoload.php:6 Stack trace: #0 /homepages/23/d727245311/htdocs/www.productmafia.com/wp-content/plugins/Shopify_data_plugin/install.php(5): require() #1 {main} thrown in /homepages/23/d727245311/htdocs/www.productmafia.com/wp-content/plugins/Shopify_data_plugin/vendor/autoload.php on line 6
    #58291
    David LinderDavid Linder
    Keymaster

    I don’t understand why you are clicking on the product mafia app on shopify?
    That’s not how the push to store feature works.

    Here is a video to show how the feature works: https://www.youtube.com/watch?v=4lPfxE8IqNY&feature=emb_logo

    #58292
    AvatarKatieArnold92
    Participant

    I wasn’t trying to push products like that I was trying to see if there were any settings there, I just thought maybe if there’s an error there it might help resolve the issue if they were linked in any way

    #58418
    David LinderDavid Linder
    Keymaster

    oh I see, sorry for the confusion, other members (just one so far) are now coming forward and reporting the same problem, I presume it must be a problem with our API, can you please confirm what shopify plan you are currently on?

    I will have our developers look into this for you ASAP, and will keep you updated.

    #58435
    AvatarKatieArnold92
    Participant

    Hello

    I was thinking maybe it’s something to do with newly created Shopify stores as I haven’t got an old one both stores I tried it with were new.

    One of the stores is a development store, and the other is a normal just basic Shopify plan and neither work. Both of these were created in the past week or week and a half.

    Hope this info is useful and thank you 🙂

    #58542
    David LinderDavid Linder
    Keymaster

    Hi Katie,

    Sorry this is taking so long, just to give you an update, we think we found what is causing the issue and implementing the fix now.

    Thanks

    – Dave

    #58678
    David LinderDavid Linder
    Keymaster

    It’s fixed again now, can you please give it a go and let me how it works?

    #58709
    AvatarKatieArnold92
    Participant

    It works now! Images aren’t pushed though not sure if they are intended to push with the product. But either way thank you I can do the images myself

    #58712
    David LinderDavid Linder
    Keymaster

    Oops, we must have overlooked that, unfortunately, our developers have already clocked out for the weekend. We will get this fixed so it pushes the images too first thing Monday.

    thanks – have a great weekend

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.