Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
When building a docker image, I didn't spot I'd inadvertently mistyped the region name to use when pushing the build container to the artifact reposstory.
Cloud Build receives an error but it's actually a bunch of HTML so it's a little difficut to spot the cause of the problem.
What you expected to happen:
An clearer error should be produced specifying that the region for the artifact repository does not exist.
Steps to reproduce:
Use a cloudbuild file similar to this:
steps:
- name: '
args: [ 'build', '-t', '${_LOCATION}-
images:
- '${_LOCATION}-
And call with the following
gcloud builds submit --config=frontend/basic_query/cloudbuild.yaml --project=REDACTED \
--substitutions=_LOCATION="asia-souteast1",_REPOSITORY="docker-repo",_IMAGE="basic_query:latest" .
Note that _LOCATION is bad (the 'h' is missing from southeast1)
The error displyed when running cloud build is as below. It's not immediately clear of the problem but eventually you spot the typo in the final line.
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE html>\n<html lang=en>\n <meta charset=utf-8>\n <meta name=viewport content=\"initial-scale=1, minimum-scale=1, width=device-width\">\n <title>Error 404 (Not Found)!!1</title>\n <style>\n *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//
Pushing
The push refers to repository [