Skip to content

added http status code error handling to DownloadUrl function #2959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

jaynis
Copy link
Contributor

@jaynis jaynis commented Jun 18, 2024

Description

This PR adds http status code error handling to the DownloadUrl utils functions so that it returns an error if the received response has a non-successful status code. This again enables the fetcher sidecar container to error out if the requested package cannot be served by the storage service (e.g. indicated by status code 404).

Which issue(s) this PR fixes:

Fixes #2958

Testing

Please note the error below is highly expected because this PR is about adding errors where they were missing before.

image

@soharab-ic
Copy link
Contributor

@jaynis Please make following changes.

  • Follow the format for providing PR details such as description, issues fixed, testing etc.
  • Add a screenshot of the log in testing field.
  • Sign the commit.

You can use this PR #2955 as sample.

@jaynis
Copy link
Contributor Author

jaynis commented Jun 19, 2024

Did all this. Let me know if something is still missing.

@soharab-ic
Copy link
Contributor

@jaynis Please follow this Github doc for signing your commit.

E.g. These are the signed commits. Click on the verified button.
https://github.com/fission/fission/pull/2951/commits

Signed-off-by: jaynis <kranz.jannis@googlemail.com>
@jaynis
Copy link
Contributor Author

jaynis commented Jun 19, 2024

Sorry I confused signing a commit with signing it off. Now I have properly signed it and you can see the "verified" bubble on my commit.

@sanketsudake sanketsudake merged commit 1985852 into fission:main Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fetcher does not handle http status codes properly during function specialization
3 participants