download_job_artifact_file
method fails when the artifact is a non-JSON text file
#621
Labels
download_job_artifact_file
method fails when the artifact is a non-JSON text file
#621
When trying to download an artifact file using the
download_job_artifact_file
, the response is incorrectly attempted to be JSON-parsed, and hence will fail for any non-JSON non-binary files.Example: Try downloading artifacts from https://gitlab.com/balasankarc/test-gitlab-gem-artifact-download/-/jobs/1399004917. See example below
true
because JSON load failed and the|| {}
gets applied.The text was updated successfully, but these errors were encountered: