Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

[Shopify] Error while updating stock from Odoo to Shopify

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
stockupdateshopify
2 Replies
4472 Rodiniai
Portretas
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
Portretas
Atmesti
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.

Portretas
Vasily Puntus | VentorTech
Best Answer

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
Portretas
Atmesti
Portretas
Krishna Bhalala
Best Answer

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

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

Registracija
Related Posts Replies Rodiniai Veikla
a user have access rights to ware house manager,how to disable stock update button in inventory tab in product form
stock update
Portretas
0
kov. 15
3749
Update supplier's stock
stock update supplier
Portretas
1
spal. 20
4730
Error in function to update a stock?
stock function update
Portretas
0
kov. 15
4211
Faliure to update sale_stock module
stock sale update v13
Portretas
0
lapkr. 20
2965
Configuration of account related to Price Difference Account ?
stock v7 account update
Portretas
Portretas
1
geg. 17
6735
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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