Giter VIP home page Giter VIP logo

Comments (3)

jomo avatar jomo commented on August 18, 2024

--connect-timeout

Maximum time in seconds that you allow the connection to the server to take. This only limits the connection phase, once curl has connected this option is of no more use.

5 seconds should be enough to establish a connection.
The actual time to upload the image is -m 120 (2 minutes). This should be fine as well.

curl: (28) Resolving timed out after 5515 milliseconds

This does look like a DNS issue though. Can you reach https://api.imgur.com?


However, you can tweak these upload_connect_timeout, upload_timeout, upload_retries settings in your config if you're on a slow network.

from imgur-screenshot.

 avatar commented on August 18, 2024

My mistake for the values names.

But in my case, i removed all upload_connect_timeout, upload_timeout and upload_retries from the cURL options and it works just fine.

Maybe I'll have a look with my DNS and see again.

And yes, i can reach the link.


Edit: it's the ---connect-timeout issues anw, I used the original imgur-screenshot.sh file, change upload_connect_timeout='10' from ~/.config/imgur-screenshot/settings.conf and it worked.

Edit 2: a notify-send "Imgur Screenshot" "Please select area" at line 122 would be nice.

from imgur-screenshot.

jomo avatar jomo commented on August 18, 2024

Okay, this seems to be a problem with your (apparently rather slow) internet connection.
Glad you could fix it.

Can you open a new issue for your 2nd Edit?

from imgur-screenshot.

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.