302 redirect
See original GitHub issueOverview
Using frictionless (4.21.2) CLI to validate a CSV file available from a 302 redirect URL leads to strange behaviour.
The incriminated URL is https://demo.data.gouv.fr/fr/datasets/r/d4d78089-f218-40b6-a86a-d7cc4e624b0c. It redirects to https://static.data.gouv.fr/resources/donnees-essentielles-de-conventions-de-subvention-a-antibes/20200325-153014/antibes-subventions-2017.csv using Location
http header.
Validating the primary URL using frictionless:
> frictionless validate --schema https://git.opendatafrance.net/scdl/subventions/-/raw/v2.0.1/schema.json https://demo.data.gouv.fr/fr/datasets/r/d4d78089-f218-40b6-a86a-d7cc4e624b0c
# -----
# valid: https://demo.data.gouv.fr/fr/datasets/r/d4d78089-f218-40b6-a86a-d7cc4e624b0c
# -----
Validating the target url:
frictionless validate --schema https://git.opendatafrance.net/scdl/subventions/-/raw/v2.0.1/schema.json https://static.data.gouv.fr/resources/donnees-essentielles-de-conventions-de-subvention-a-antibes/20200325-153014/antibes-subventions-2017.csv
# -------
# invalid: https://static.data.gouv.fr/resources/donnees-essentielles-de-conventions-de-subvention-a-antibes/20200325-153014/antibes-subventions-2017.csv
# -------
========== ======================================
code message
========== ======================================
task-error The task has an error: 'fieldPosition'
========== ======================================
So I got some questions/remarks:
- it seems that frictionless doesn’t support 302 redirect. Am I wrong? If not, do you plan to implement it or is there a workaround to deal with this type of URL?
- first frictionless command reports a valid result. It’s strange as the URL body is HTML and not tabular data (?)
- second frictionless command reports an invalid result. How should the message be understood?
Thanks in advance for your help.
Please preserve this line to notify @roll (lead of this repository)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
302 Found - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 302 Found redirect status response code indicates that the resource requested has been temporarily ...
Read more >A Guide To 301 vs 302 Redirects For SEO
A 302 redirect lets search engines know that a website or page has been moved temporarily. When Should You Use 302 Redirects? Use...
Read more >HTTP 302 - Wikipedia
The HTTP response status code 302 Found is a common way of performing URL redirection. The HTTP/1.0 specification (RFC 1945) initially defined this...
Read more >When to Use a 301 Redirect vs. 302 Redirect - seoClarity
A 302 redirect is a temporary redirect and directs users and search engines to the desired page for a limited amount of time...
Read more >What Is a 301 or 302 Redirect? | Domain.com | Blog
There is a simple difference between a 301 and 302 redirect: a 301 redirect indicates that a page has permanently moved to a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, @pierredittgen!
I’ll investigate
Thanks @roll! We’ll test on our side and let you know if we still have related issues.