question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Overview

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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
rollcommented, Nov 22, 2021

Thanks, @pierredittgen!

I’ll investigate

1reaction
johanrichercommented, Jan 21, 2022

Thanks @roll! We’ll test on our side and let you know if we still have related issues.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found