Comments (4)
See also #30 — still an issue.
Failure at this stage should display clear instructions on how to resolve the issue, which AFAICT simply consists of trashing the original ODM along with any derivative files generated so far, and retrying with a freshly downloaded ODM.
from overdrive.
This is still an issue and I would agree that instructions on how to resolve this (delete / redownload) would be appreciated.
from overdrive.
Btw. 25a3e94 is intended to address this.
from overdrive.
...also ab1dfcc.
Ideally, curl
would have some combination of flags like --fail --output success.txt --fail-output -
that would switch output destination on HTTP error codes, so that the failure response could be written to stdout (or wherever). But AFAICT if I want to handle response data differently based on the HTTP status code, I would have to 1) write the output to a temporary file, 2) parse out the status code, 3) on failure, just cat
the temp file and exit 1
, 4) on success, parse out the response body (remove the status line and headers) and write it to the (ODM-adjacent) license file. Which seems like an awful lot of extra work/complexity for what should be a pretty rare failure 😬
Closing this since 25a3e94 and ab1dfcc should now make recovery easier, but if anyone stumbles on this in the future, feel free to open a new issue.
from overdrive.
Related Issues (20)
- Check that files in MEDIA array exist
- overdrive command not found HOT 2
- [Enhancement] Tabbing autocomplete for commands HOT 1
- linux support HOT 3
- Libraries omitting ODM download links HOT 14
- HTTP errors swallow potentially useful response content HOT 3
- syntax error near unexpected token `newline' when downloading an .odm file HOT 1
- Ubuntu bash on WSL hates returns HOT 1
- Process substitution not supported by Alpine Linux on iOS HOT 4
- newb I/O error : Operation not permitted warning: failed to load external entit HOT 5
- any idea how we can use libby? HOT 2
- License Error HOT 1
- Libby HOT 1
- Does this work in Windows? HOT 2
- Python CLI for Libby - link to repo HOT 1
- Is there a way to pull chapter timestamps out as we're doing this? HOT 15
- error
- delete me HOT 1
- Feature suggestion - automate .odm retrieval HOT 1
- xmllint: command not found 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 overdrive.