Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

[Shopify] Error while updating stock from Odoo to Shopify

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
stockupdateshopify
2 Risposte
4462 Visualizzazioni
Avatar
Mark Yoon

Does anybody get errors while executing update stock?  
- I am assuming that more than 20k SKU is causing the problem 

This is what I get errors details while executing updates for stock


/Traceback (most recent call last):
 File "/opt/odoo/odoo11/addons/shopify_ept/shopify/pyactiveresource/connection.py", line 286, in _open
    http_response = self._handle_error(self._urlopen(request))
 File "/opt/odoo/odoo11/addons/shopify_ept/shopify/pyactiveresource/connection.py", line 318, in _urlopen
   return urllib.request.urlopen(request)
 File "/opt/rh/rh-python35/root/usr/lib64/python3.5/urllib/request.py", line 162, in urlopen
   return opener.open(url, data, timeout)
 File "/opt/rh/rh-python35/root/usr/lib64/python3.5/urllib/request.py", line 471, in open
   response = meth(req, response)
 File "/opt/rh/rh-python35/root/usr/lib64/python3.5/urllib/request.py", line 581, in http_response
   'http', request, response, code, msg, hdrs)
 File "/opt/rh/rh-python35/root/usr/lib64/python3.5/urllib/request.py", line 509, in error
   return self._call_chain(*args)
 File "/opt/rh/rh-python35/root/usr/lib64/python3.5/urllib/request.py", line 443, in _call_chain
   result = func(*args)
 File "/opt/rh/rh-python35/root/usr/lib64/python3.5/urllib/request.py", line 589, in http_error_default
   raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/opt/odoo/odoo11/addons/shopify_ept/models/shopify_product_ept.py", line 896, in update_stock_in_shopify
   int(quantity))
 File "/opt/odoo/odoo11/addons/shopify_ept/shopify/resources/inventory_level.py", line 47, in set
   resource = cls.post('set', body=json.dumps(body).encode())
 File "/opt/odoo/odoo11/addons/shopify_ept/shopify/pyactiveresource/activeresource.py", line 675, in _class_post
   return cls.connection.post(url, cls.headers, body)
 File "/opt/odoo/odoo11/addons/shopify_ept/shopify/pyactiveresource/connection.py", line 375, in post
   return self._open('POST', path, headers=headers, data=data)
 File "/opt/odoo/odoo11/addons/shopify_ept/shopify/base.py", line 26, in _open
   self.response = super(ShopifyConnection, self)._open(*args, **kwargs)
 File "/opt/odoo/odoo11/addons/shopify_ept/shopify/pyactiveresource/connection.py", line 288, in _open
   http_response = self._handle_error(err)
 File "/opt/odoo/odoo11/addons/shopify_ept/shopify/pyactiveresource/connection.py", line 429, in _handle_error
   raise ServerError(err)
odoo.addons.shopify_ept.shopify.pyactiveresource.connection.ServerError: Bad Gateway

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/opt/odoo/odoo11/odoo/http.py", line 651, in _handle_exception
   return super(JsonRequest, self)._handle_exception(exception)
 File "/opt/odoo/odoo11/odoo/http.py", line 310, in _handle_exception
   raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
 File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 87, in reraise
   raise value
 File "/opt/odoo/odoo11/odoo/http.py", line 693, in dispatch
   result = self._call_function(**self.params)
 File "/opt/odoo/odoo11/odoo/http.py", line 342, in _call_function
   return checked_call(self.db, *args, **kwargs)
 File "/opt/odoo/odoo11/odoo/service/model.py", line 97, in wrapper
   return f(dbname, *args, **kwargs)
 File "/opt/odoo/odoo11/odoo/http.py", line 335, in checked_call
   result = self.endpoint(*a, **kw)
 File "/opt/odoo/odoo11/odoo/http.py", line 937, in __call__
   return self.method(*args, **kw)
 File "/opt/odoo/odoo11/odoo/http.py", line 515, in response_wrap
   response = f(*args, **kw)
 File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 938, in call_button
   action = self._call_kw(model, method, args, {})
 File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 926, in _call_kw
   return call_kw(request.env[model], method, args, kwargs)
 File "/opt/odoo/odoo11/odoo/api.py", line 689, in call_kw
   return call_kw_multi(method, model, args, kwargs)
 File "/opt/odoo/odoo11/odoo/api.py", line 680, in call_kw_multi
   result = method(recs, *args, **kwargs)
 File "/opt/odoo/odoo11/addons/shopify_ept/wizard/shopify_process_import_export.py", line 90, in execute
   self.update_stock_in_shopify()
 File "/opt/odoo/odoo11/addons/shopify_ept/wizard/shopify_process_import_export.py", line 212, in update_stock_in_shopify
   products and shopify_product_tmpl_obj.update_stock_in_shopify(instance, products)
 File "/opt/odoo/odoo11/addons/shopify_ept/models/shopify_product_ept.py", line 898, in update_stock_in_shopify
   if e.response.code == 429 and e.response.msg == "Too Many Requests":
AttributeError: 'ServerError' object has no attribute 'response' Like4:39 pmMessage read today


I would be much appreciate if someone can help me with this.  

0
Avatar
Abbandona
Sudhir Arya (ERP Harbor Consulting Services)

I would suggest to ask the author of the module as it is a paid app and they will support such issues/errors.

Avatar
Vasily Puntus | VentorTech
Risposta migliore

Which connector do you use?

If you watch the video about this Odoo Shopify connector, you will see that it provides human readable errors that are easy to debug - https://youtu.be/6rQOjfzOuE0 

1
Avatar
Abbandona
Avatar
Krishna Bhalala
Risposta migliore

Here, e as Exception and that got the value like string not response format from the request, so need to check first the e is not string then can check the e have the response or not.

e got like in string while any variable not defined in try: block, or something another error.

Also you can use to check Exception have response or not like, 

if hasattr(e, "response"):

    if e.response.code == 429 and e.response.msg == "Too Many Requests":



0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
a user have access rights to ware house manager,how to disable stock update button in inventory tab in product form
stock update
Avatar
0
mar 15
3742
Update supplier's stock
stock update supplier
Avatar
1
ott 20
4726
Error in function to update a stock?
stock function update
Avatar
0
mar 15
4207
Faliure to update sale_stock module
stock sale update v13
Avatar
0
nov 20
2962
Configuration of account related to Price Difference Account ?
stock v7 account update
Avatar
Avatar
1
mag 17
6732
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now