As far as I can tell, i am getting a ResourceNotFound error for the malformed url:
obviously there isn't supposed to be two "/" after admin but I dont know why this is happening. Oddly enough this script which has run successfully for months just started doing this today. I haven't changed anything script wise but I did open a support ticket for duplicate product pages that won't seem to delete. As far as I can tell via the traceback the error is caused by this line in my application:
variant = Variant.objects.get(sku)
I have verified that sku is being passed and it appears to error out on an SKU that doesn't exist in shopify but none the less is exported by our terrible POS software. Of course there's hundreds of products that are not in shopify but none of them are causing this error. I'm stumped as to why this get() is resolving to this malformed url. Any help would be great!
Traceback (most recent call last): File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view return view_func(request, *args, **kwargs) File "/home/username/projects/projectname/domain.com/apps/shopified/views.py", line 103, in process update(sku, quantity) File "/home/username/projects/projectname/domain.com/apps/shopified/inventory.py", line 73, in update inventory_quantity=quantity)).save() File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/pyactiveresource/activeresource.py", line 775, in save data=self.to_xml()) File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/pyactiveresource/connection.py", line 351, in put return self._open('PUT', path, headers=headers, data=data) File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/shopify/base.py", line 19, in _open self.response = super(ShopifyConnection, self)._open(*args, **kwargs) File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/pyactiveresource/connection.py", line 287, in _open http_response = self._handle_error(err) File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/pyactiveresource/connection.py", line 407, in _handle_error raise ResourceNotFound(err) ResourceNotFound: Not Found: https://pacific-fly-fishers.myshopify.com/admin//variants/288274264.xml