Find product error REST ADMIN API

Highlighted
New Member
1 0 0

When I am trying to find product by id using find() 

shopify.Product().find('XXXXXXXX')

 

getting error 

Traceback (most recent call last):
File "/home/***/venv/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/***/venv/lib/python3.7/site-packages/celery/app/trace.py", line 650, in __protected_call__
return self.run(*args, **kwargs)
File "/home/***/src/api/v1_0_0/tasks/shopify.py", line 159, in publish_product_on_shopify
new_product = shopify.Product().find(XXXXX)
File "/home/***/venv/lib/python3.7/site-packages/shopify/base.py", line 211, in find
collection = super(ShopifyResource, cls).find(id_=id_, from_=from_, **kwargs)
File "/home/****/venv/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 384, in find
return cls._find_single(id_, **kwargs)
File "/home/***/venv/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 488, in _find_single
prefix_options)
File "/home/****/venv/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 540, in _build_object
return cls(attributes, prefix_options)
File "/home/****/venv/lib/python3.7/site-packages/shopify/base.py", line 181, in __init__
return super(ShopifyResource, self).__init__(attributes, prefix_options)
File "/home/****/venv/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 363, in __init__
self._update(attributes)
File "/home/****/venv/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 977, in _update
attr.append(klass(child))
TypeError: 'module' object is not callable

 

It was working fine 3...4 days back. but not now

I did not change any code.

 

Any help??

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1004 131 148

Are you able to capture a request ID from the response headers, or provide the product ID?

0 Likes