Comments (4)
@lamg I tried this:
annie -i -s 127.0.0.1:1080 -p https://www.youtube.com/watch\?v\=4FE79y_JkCE\&list\=PLGxuz-nmYlQMO2wRhUhV_g6AN3vLN_4X7
Site: YouTube youtube.com
Title: Graph Theory:64. Vertex Colouring
Type: video
Quality: hd720
Size: 63.57 MiB (66657987 Bytes)
Site: YouTube youtube.com
Title: Graph Theory:65. 2-Chromatic Graphs
Type: video
Quality: hd720
Size: 45.82 MiB (48050601 Bytes)
^C
but everything is normal here. Can you retry this to see it still wrong?
from lux.
The following code (from request.go) causes this error, is wrong because input/output errors shouldn't be treated as exceptional:
res, err := client.Do(req)
if err != nil {
log.Print(url)
panic(err)
}
You should return the error value.
from lux.
You mean to ignore this error
?
res, _ := client.Do(req)
But I don't understand why you got this Bad Gateway
error
from lux.
I mean it shouldn't be treated as something worth of a panic call. Checkout the pattern I use for handling errors in https://github.com/lamg/pmproxy/blob/master/cmd/pmproxy/main.go. Every error in internal procedures is returned, the command line interface handles them at the end, because showing messages to the user is its concern.
The Bad Gateway
probably is a consequence of using a very busy HTTP proxy server with little bandwidth for serving its clients.
from lux.
Related Issues (20)
- [download fail]: the website name
- 优酷怎么登陆VIP下载?
- [download fail]: bilibili HOT 1
- [download fail]: json: cannot unmarshal number 3.003 into Go struct field .aweme_detail.video.big_thumbs.interval of type int
- Youtube downloading is extremly slow HOT 1
- [download fail]: twitter.com
- download goes more than 100% with -m
- Support downloading subtitles in bilibili
- If you have issue with installing the app by go HOT 1
- Windows中下载完成后合并文件时出错 HOT 1
- add a feature to download audio
- [download fail]: bill bill HOT 5
- [download fail]: LUX will skip files with same names. HOT 1
- [download fail]: 西瓜视频API 404 HOT 1
- [视频下载]: 小鹅通
- lux https://www.youtube.com/watch?v=GonOglAwfwY lux 1.0.0.0 Copyright ? Chloe Stars 2019 ERROR(S): Verb 'https://www.youtube.com/watch?v=GonOglAwfwY' is not recognized. --help Display this help screen. --version Display version information.[download fail]: the website name
- [new website require]: 腾讯会议
- [download fail]: 斗鱼 douyu 虎牙 huya
- [download fail]: youtube HOT 1
- [download fail]: 喜马拉雅 ximalaya HOT 1
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 lux.