Giter VIP home page Giter VIP logo

Comments (6)

TinQ0 avatar TinQ0 commented on July 29, 2024

I'm having the exact same problem and the product also get created. To be fair I don't really mind the errors as everything still seems to work perfectly fine, but how can you deal with it to still incorporate the product creation in a working program?

from wc-api-python.

kadnan avatar kadnan commented on July 29, 2024

I'm having the exact same problem and the product also get created. To be fair I don't really mind the errors as everything still seems to work perfectly fine, but how can you deal with it to still incorporate the product creation in a working program?

Set the timeout around 20 seconds in the API() constructor and it should work for you then.

from wc-api-python.

TinQ0 avatar TinQ0 commented on July 29, 2024

Had to set it to 30 for it too work. Our site is indeed quite slow so that might be the culprit. Thank you!

from wc-api-python.

claudiosanches avatar claudiosanches commented on July 29, 2024

Hello, thanks for reporting it.

This one is an issue with requests library, you can issue more details in psf/requests#5291
My advice besides changing timeout it's to implement a try/catch to handle those errors.

I'm closing for now since it's an issue from requests and there's some workarounds for it.

from wc-api-python.

tazasahar avatar tazasahar commented on July 29, 2024

@claudiosanches I am getting this error as well. I have tried increasing the timeout to 30, 50, and even 100 but it doesn't
seem to work. Is there any work around?

from wc-api-python.

singcang avatar singcang commented on July 29, 2024

me too :(

from wc-api-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.