Week 3: First graded lab, Connection Refused error

Hi I am getting this error while running the command- “!tfx pipeline create
–pipeline_path=runner.py
–endpoint={ENDPOINT}
–build_target_image={CUSTOM_TFX_IMAGE}”

Error:

raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘localhost’, port=80): Max retries exceeded with url: /apis/v1beta1/healthz (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7ff6b761cd10>: Failed to establish a new connection: [Errno 111] Connection refused’))

Hi Agrim! Welcome to Discourse! Sorry to hear about your trouble with the lab. It seems like there is a problem with the endpoint. Are you able to fetch the entire URL from the Settings page? You can just grab the string inside the host parameter as shown below:

Also, by any chance, did you modify any of the other variables in the notebook? To get the complete grade, you only need to define the ENDPOINT variable.

Lastly, make sure that your GCP account is using the temporary Gmail that Qwiklabs provided. If you open new tabs or windows, GCP sometimes switches to your personal Gmail if you are logged in. That has caused errors in the past. You may want to redo the lab in a fresh Incognito/private browsing session so only the temporary Gmail credentials are seen by your browser.

Hope these help!