ResourceNotFound: when calling Variant.objects.get()

Shopify Partner
65 0 6

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/", 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/", line 25, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/username/projects/projectname/", line 103, in process
    update(sku, quantity)
  File "/home/username/projects/projectname/", line 73, in update
  File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/pyactiveresource/", line 775, in save
  File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/pyactiveresource/", 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/", line 19, in _open
    self.response = super(ShopifyConnection, self)._open(*args, **kwargs)
  File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/pyactiveresource/", line 287, in _open
    http_response = self._handle_error(err)
  File "/home/username/.virtualenvs/projectname/local/lib/python2.7/site-packages/pyactiveresource/", line 407, in _handle_error
    raise ResourceNotFound(err)
ResourceNotFound: Not Found: