Giter Site home page Giter Site logo

Comments (4)

sclm avatar sclm commented on May 28, 2024

Interesting error. This appears to be an issue with the SSL connection failing to establish correctly. Are you behind a firewall/proxy that may be interfering with this?

An API that can retrieve multiple videos is something we're considering, so definitely keep an eye out. It certainly won't be geared towards the ID (see my note below), but it should meet this use case more generally.

As an aside, we don't generally encourage the video IDs to be used anymore (you'll notice we don't provide them in this version of the API). The IDs and URIs in this version are not guaranteed to be strings or even to be directly under /videos. In their place we encourage you to use the video's URI field as the unique identifier so that you're safe any changes to it.

from vimeo.py.

 avatar commented on May 28, 2024

No, I do not use any proxy, just single dedicated server in Hetzner https://www.hetzner.de/en/hosting/produkte_rootserver/px120ssd with Ubuntu, ssh, nginx, uWSGI, Postgres and Django

May be it's related with harakiri http://uwsgi-docs.readthedocs.org/en/latest/Options.html#harakiri settings, I use 20 seconds... But on my local Mac this request needs 40 seconds at least...

I will try some later use vimeo.py for single API requests, I think, it will work...

from vimeo.py.

sclm avatar sclm commented on May 28, 2024

Ah, yeah, if you're causing the request to die from the uwsgi process, that may be the culprit. I would suggest making these requests in parallel instead of serially. We don't presently support the ability to make this one request to Vimeo, but you could use threads or some other mechanism to have several of them in process at the same time.

from vimeo.py.

 avatar commented on May 28, 2024

There is http://docs.python-requests.org/en/v0.10.6/user/advanced/#asynchronous-requests and http://uwsgi-docs.readthedocs.org/en/latest/asyncio.html, but it mean, I need to hack Django scripts, how it process admin data...

I think, I know better way - I will just add field for caching stats and will update this field in cron script and will show this cached value in admin, it will easy...

from vimeo.py.

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.