Comments (3)
--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.
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.
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)
- Copr repository fails to sync for f27 HOT 3
- Graphical issue on screen capture window? HOT 1
- AUR version 1.7.4 not working properly HOT 1
- screenshot only take all black picture
- sometimes fail to call imgur-screenshot HOT 9
- [feature request] Ability to change mode by additional command line parameter HOT 2
- On Kubuntu there are black lines in the screenshots. HOT 1
- Missing response_type=pin in requests HOT 2
- Config file? HOT 1
- Uploaded pictures are smaler than my screenshot HOT 2
- Getting artifacts on the images HOT 2
- Screenshot area border disappearing HOT 6
- Run in background when Mac starts HOT 1
- Looking for a new maintainer HOT 4
- Mint 20 is Uploading from Nemo but Displaying Upload Failed HOT 6
- upload failed HOT 1
- Not working anymore HOT 1
- Need to wait for a pose HOT 1
- not honoring settings.conf HOT 1
- Config doesn't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgur-screenshot.