Add Column by Fetching URL silently fails on malformed URLs #6137
Labels
error handling
Improving the ways errors are reported to users
fetch urls
About fetching URLs in a project
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
Milestone
If an invalid URL is used for the Add Column by Fetching URLs operation, the operation silently results in a null value instead of an error, making it much more difficult for the user to figure out what the problem is. This was recently on the forum as a cause of confusion for a user: https://forum.openrefine.org/t/fetching-urls-with-arabic-values/1036/1
This behavior was checked by a test, so I coded the new HTTP support to mimic it, but I think the test is wrong and we should fix both it and the code so that URL/URI errors get reported to the user in an intelligible fashion.
To Reproduce
Steps to reproduce the behavior:
Current Results
The operation silently fails with no error stored in the cell.
Expected Behavior
The cell value should be set to an
EvalError
with the appropriate error code/message.Versions
The text was updated successfully, but these errors were encountered: