Community mailing list archives

community@mail.odoo.com

Re: Wocommerce Connector Problem to import product (V8)

by
Md. Tanzilul Hasan Khan
- 11/28/2016 02:26:38
Is there any solution to this. I can import product categories but can't import products. It gives -

ReadTimeout: HTTPConnectionPool(host='localhost', port=80): Read timed out. (read timeout=5)

what to do?





On Sun, Nov 27, 2016 at 4:44 PM, MD Tanzilul Hasan Khan <ponkhi403@gmail.com> wrote:
After installing wocommerce odoo connector plugin I have successfully installed and integrated the module. But, I can import - Product Categories, Customer not Products.

When I am trying to import products following error shows-

File "/home/Tanzil/erp_sources/custom/addons/connector/queue/worker.py", line 124, in run_job
    job.perform(session)
  File "/home/Tanzil/erp_sources/custom/addons/connector/queue/job.py", line 512, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/home/Tanzil/erp_sources/custom/addons/connector_woocommerce/model/product.py", line 470, in product_import_batch
    importer.run(filters=filters)
  File "/home/Tanzil/erp_sources/custom/addons/connector_woocommerce/model/product.py", line 211, in run
    to_date=to_date,
  File "/home/Tanzil/erp_sources/custom/addons/connector_woocommerce/model/product.py", line 176, in search
    [filters] if filters else [{}])
  File "/home/Tanzil/erp_sources/custom/addons/connector_woocommerce/model/product.py", line 148, in _call
    return super(ProductTemplateAdapter, self)._call(method, arguments)
  File "/home/Tanzil/erp_sources/custom/addons/connector_woocommerce/unit/backend_adapter.py", line 146, in _call
    result = api.get(method).content.replace(
  File "/usr/local/lib/python2.7/dist-packages/woocommerce/api.py", line 97, in get
    return self.__request("GET", endpoint, None)
  File "/usr/local/lib/python2.7/dist-packages/woocommerce/api.py", line 92, in __request
    headers=headers
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 464, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 433, in send
    raise ReadTimeout(e, request=request)
ReadTimeout: HTTPConnectionPool(host='mysitebd.com', port=80): Read timed out. (read timeout=5)


How to solve this? I can't import products.





On Sun, Nov 27, 2016 at 11:50 AM, MD Tanzilul Hasan Khan <ponkhi403@gmail.com> wrote:
Hello,

I am trying to import products from woocommerce to odoo db but can't. I having an exception like below:

Traceback (most recent call last):
  File "/home/Tanzil/erp_sources/custom/addons/connector/queue/worker.py", line 124, in run_job
    job.perform(session)
  File "/home/Tanzil/erp_sources/custom/addons/connector/queue/job.py", line 512, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/home/Tanzil/erp_sources/custom/addons/woocommerceerpconnect/unit/import_synchronizer.py", line 284, in import_record
    importer.run(woo_id, force=force)
  File "/home/Tanzil/erp_sources/custom/addons/woocommerceerpconnect/unit/import_synchronizer.py", line 203, in run
    self._import_dependencies()
  File "/home/Tanzil/erp_sources/custom/addons/woocommerceerpconnect/model/product.py", line 162, in _import_dependencies
    record = record['product']
KeyError: 'product'

Also in odoo log I found this:
'message': 'No route was found matching the URL and request method', 'code': 'woocommerce_api_no_route'

How Can I import products, the test connection was successful?

Regards,
--
MD. Tanzilul Hasan Khan.







--
MD. Tanzilul Hasan Khan.







--
MD. Tanzilul Hasan Khan.