Uploading image files to Shopify via API

I’m trying to upload image files to my Shopify files section via the API in a custom node. I’ve got a custom app setup on the Shopify side with the correct read/write access for files. I’ve tried passing in the following types of URL’s:

In all cases I’m getting a 406 error from Shopify. Tried various workarounds, but it appears to be rejecting everything i try and upload. Has anyone else experienced this? Is there something I’m doing wrong here?

Hey @JS14! If you’re reporting an issue with a flow or an error in a run, please include the run link and make sure it’s shareable so we can take a look.

  1. Find your run link on the history page. Format: https://www.gumloop.com/pipeline?run_id={{your_run_id}}&workbook_id={{workbook_id}}

  2. Make it shareable by clicking “Share” → ‘Anyone with the link can view’ in the top-left corner of the flow screen.
    GIF guide

  3. Provide details about the issue—more context helps us troubleshoot faster.

You can find your run history here: https://www.gumloop.com/history

Hey @JS14 – Can you share the workflow link please so I can take a look? I believe the code might be expecting a file object while you’re passing in a file URL here.

Hey @Wasay-Gumloop I don’t have a workflow link as I’m trying to make a custom node. It won’t let me make the custom node because it keeps returning the failure code. So I try and tweak it within gummie or directly in the code but I can’t make it actually run in a flow yet. What would be the next best way to share the info with you? email the code from my node before I exit gummie and lose it?

Yes that should work, feel free to email me at wasay@gumloop.com.

1 Like