Comments (2)
Hm, it seems like the page returns a "proper" 404 status code when the PDF isn't yet available.
I do wonder why the filter is run in this case. Have you maybe set things up to ignore 404 errors?
from urlwatch.
No, it they don't return a proper 404, in fact it really depends on the request:
$ curl -I https://donneespubliques.meteofrance.fr/donnees_libres/bulletins/BCM/202207.pdf
HTTP/1.1 404 Not Found
...
$ curl -i https://donneespubliques.meteofrance.fr/donnees_libres/bulletins/BCM/202207.pdf
HTTP/1.1 302 Found
Date: Tue, 19 Apr 2022 20:08:54 GMT
Location: https://donneespubliques.meteofrance.fr/?fond=donnee_indisponible
...
And in urlwatch, in the job retrieve function we're hitting the 2nd case:
(Pdb) p response
<Response [200]>
(Pdb) p response.url
'https://donneespubliques.meteofrance.fr/?fond=donnee_indisponible'
(Pdb) p response.history
[<Response [302]>]
from urlwatch.
Related Issues (20)
- Browser Job not working HOT 5
- HtmlReporter uses invalid css color HOT 1
- RequestsDependencyWarning: urllib3 HOT 4
- Feature request: error threshold HOT 2
- TypeError: string indices must be integers HOT 2
- UnicodeDecodeError: 'charmap' codec can't decode byte
- Shell reporter not working HOT 5
- --gc-cache does not delete unused keys from redis db HOT 2
- Keye
- KeyError thrown when using default config YAML HOT 8
- Watching webpage that needs a session cookie HOT 2
- XPath/CSS filter: `exclude` not working properly HOT 6
- White underline visible in documentation code blocks due to Sphinx Theme HOT 9
- Consider switching to playwright-python from pyppeteer HOT 1
- DeprecationWarning alerts related to "Docutils 0.21 or later" HOT 1
- urlwatch fails to find example files when launched from /usr/sbin HOT 3
- Pushover reporter: Implement possibility to override `priority` on url configuration HOT 2
- Built-in "ntfy" reporter HOT 2
- Wait for selector? HOT 2
- Usage of diff_filter 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 urlwatch.