Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I am struggling with connecting my Shopify Test Store, through the API connection, with my code running on a docker container with the the server running on port 2000 inside Docker on my local machine. I am doing a port binding as follows: 3031:2000.
I am using the shopify-api-node library for NodeJS to connect with my Javascript code to the Shopify API and when trying to do any request to Shopify I get this error:
I initialize my Shopify variable like this:
and when after creating the Shopify variable I do this:
It never reaches the second log because the error is thrown. I already tried to remove the Do-While loop, but it does nothing. The only thing that I have made working is: when I run a quite similar code that I had before, without servers and without port bindings, just a Shopify API connection with the same library, same version, to the same store, running on a function and running that function on a Docker container, that works out. So, I guess it is just a Network issue, maybe some firewall with the PortBinding or it is passing the wrong url to send the response, or maybe it's just hitting the wrong port. Maybe it is hitting the "127.0.0.1:3031", but it needs to hit the
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024