I have gone through and followed all the steps required to get the Shopify integration running on the cloud hosted ERPNext solution.
When a new order is entered in the shopify site, we get a push to sync.
What Worked:
New customer information was created in ERPNext.
What Didn’t Work:
No products were imported
No sales order created
Error Log (See Below)
Traceback (most recent call last):
File "/home/frappe/benches/bench-2019-01-09/apps/frappe/frappe/utils/background_jobs.py", line 103, in execute_job
method(**kwargs)
File "/home/frappe/benches/bench-2019-01-09/apps/erpnext/erpnext/erpnext_integrations/connectors/shopify_connection.py", line 31, in sync_sales_order
make_shopify_log(status="Error", message=e.message, exception=False)
File "/home/frappe/benches/bench-2019-01-09/apps/erpnext/erpnext/erpnext_integrations/doctype/shopify_log/shopify_log.py", line 29, in make_shopify_log
log.save(ignore_permissions=True)
File "/home/frappe/benches/bench-2019-01-09/apps/frappe/frappe/model/document.py", line 260, in save
return self._save(*args, **kwargs)
File "/home/frappe/benches/bench-2019-01-09/apps/frappe/frappe/model/document.py", line 310, in _save
self.db_update()
File "/home/frappe/benches/bench-2019-01-09/apps/frappe/frappe/model/base_document.py", line 351, in db_update
), list(d.values()) + [name])
File "/home/frappe/benches/bench-2019-01-09/apps/frappe/frappe/database.py", line 199, in sql
self._cursor.execute(query, values)
File "/home/frappe/benches/bench-2019-01-09/env/lib/python2.7/site-packages/pymysql/cursors.py", line 168, in execute
query = self.mogrify(query, args)
File "/home/frappe/benches/bench-2019-01-09/env/lib/python2.7/site-packages/pymysql/cursors.py", line 147, in mogrify
query = query % self._escape_args(args, conn)
File "/home/frappe/benches/bench-2019-01-09/env/lib/python2.7/site-packages/pymysql/cursors.py", line 122, in _escape_args
return tuple(conn.literal(arg) for arg in args)
File "/home/frappe/benches/bench-2019-01-09/env/lib/python2.7/site-packages/pymysql/cursors.py", line 122, in <genexpr>
return tuple(conn.literal(arg) for arg in args)
File "/home/frappe/benches/bench-2019-01-09/env/lib/python2.7/site-packages/pymysql/connections.py",
line 467, in literal
return self.escape(obj, self.encoders)
File "/home/frappe/benches/bench-2019-01-09/env/lib/python2.7/site-packages/pymysql/connections.py",
line 460, in escape
return converters.escape_item(obj, self.charset, mapping=mapping)
File "/home/frappe/benches/bench-2019-01-09/env/lib/python2.7/site-packages/pymysql/converters.py",
line 27, in escape_item
val = encoder(val, mapping)
File "/home/frappe/benches/bench-2019-01-09/env/lib/python2.7/site-packages/pymysql/converters.py",
line 118, in escape_unicode
return u"'%s'" % _escape_unicode(value)
File "/home/frappe/benches/bench-2019-01-09/env/lib/python2.7/site-packages/pymysql/converters.py",
line 73, in _escape_unicode
return value.translate(_escape_table)
AttributeError: 'MaxRetryError' object has no attribute 'translate'
At this time I am unable to find any reason why this error would be coming up, as this the the first integration test run and no settings have been modified. Any ideas or assistance in getting this cleared up would be greatly appreciated.