Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

[Shopify] Error while updating stock from Odoo to Shopify

Odebírat

Get notified when there's activity on this post

This question has been flagged
stockupdateshopify
2 Odpovědi
4471 Zobrazení
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
Zrušit
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
Nejlepší odpověď

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
Zrušit
Avatar
Krishna Bhalala
Nejlepší odpověď

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
Zrušit
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
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
bře 15
3747
Update supplier's stock
stock update supplier
Avatar
1
říj 20
4730
Error in function to update a stock?
stock function update
Avatar
0
bře 15
4211
Faliure to update sale_stock module
stock sale update v13
Avatar
0
lis 20
2965
Configuration of account related to Price Difference Account ?
stock v7 account update
Avatar
Avatar
1
kvě 17
6734
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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