dkan icon indicating copy to clipboard operation
dkan copied to clipboard

Catch unavailable remote download URLs before they hit the filefetcher

Open janette opened this issue 2 years ago • 0 comments

When creating a dataset distribution with a remote file that is invalid or not yet available, user will get an error when the localize_import queue runs:

[error]  Error: Call to a member function setupState() on null in FileFetcher\FileFetcher->runIt() (line 106 of /var/www/html/vendor/getdkan/file-fetcher/src/FileFetcher.php) #0 /var/www/html/vendor/getdkan/procrastinator/src/Job/Job.php(43): FileFetcher\FileFetcher->runIt()

QA Steps

  • [ ] Enable dblog
  • [ ] Create a dataset with a remote url distribution, enter a non-existing url into the field and save
  • [ ] Run drush queue:run localize_import
  • [ ] Confirm there are no errors to the screen
  • [ ] Check the logs
  • [ ] Confirm you see a message stating the url provided can not be reached.

janette avatar Mar 06 '24 16:03 janette