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
- 希望B站能支持仅下载音乐 HOT 1
- options for downloading all videos of a Douyin user?
- lux_0.24.0_Linux_arm64 extremely slow start HOT 18
- 下载错误,可以检测到1080p,但是无法下载对应的流 HOT 1
- [download fail]: the website name SOS
- Download speed seems to be limited
- [download fail]: bilibili 标题过长的视频无法正确下载 HOT 2
- [download fail]: bilibili 被分配到劣质pcdn导致下载失败
- 无法运行lux v0.24.0 HOT 4
- Version 0.24.0 starts up slowly HOT 1
- Why doesn’t lux have a default .conf?|为什么lux没有默认.conf?
- What's the option for renaming the target file? HOT 1
- [download fail]: the website name
- 哔哩哔哩如何设置下载质量 HOT 1
- [download fail]: Unable to parse Douyin link in version 0.24.1, please help
- Instagram Reel video detected as an image
- Version number does not display correctly 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.