Skip to content
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

Indicate to user the reason for failure of a URL pull job #989

Open
sentry-io bot opened this issue Feb 3, 2021 · 0 comments
Open

Indicate to user the reason for failure of a URL pull job #989

sentry-io bot opened this issue Feb 3, 2021 · 0 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 3, 2021

If a URL that the user enters 404s (or has some other non 200 status code) the user gets a relatively obscure error message.

image

Sentry Issue: HUB-15K

RuntimeError: Error when fetching .<REDACTED URL>: 404

File "jobs/base/job.py", line 191, in run
result = self.do(*args, **kwargs)
File "jobs/pull/init.py", line 69, in do
files = pull_func(source=source, path=path, secrets=secrets)
File "jobs/pull/http.py", line 26, in pull_http
raise RuntimeError(f"Error when fetching {url}: {response.status_code}")

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

No branches or pull requests

1 participant