2

I created a custom domain mapping for my Cloud Run service following this guide https://cloud.google.com/run/docs/mapping-custom-domains.

I can access my service via the https run.app URL and the custom domain via HTTP, but when I go to the custom domain via HTTPS, I get back a Google 404 error page.

The weird thing is, this seems to be an issue on my local laptop (both browser and curl on the terminal), but curl-ing it from a remote server seems to work ok.

Tri Nguyen
  • 9,950
  • 8
  • 40
  • 72
  • 1
    If you are getting a 404 error, then your HTTPS endpoint is working. A 404 is returned by your web server running inside the container. If DNS or SSL was not working, you could not get a 404. There is something wrong with the code running in your container. Go to Google Stackdriver and check the logs for error messages. Debug and fix your code. – John Hanley Jul 03 '19 at 03:44
  • @JohnHanley I think you're correct, though I don't see any error in my service. It seems like I could access the service via curl from a remote server OK, but somehow loading it on my browser or curl-ing it from my computer is presenting the 404. – Tri Nguyen Jul 03 '19 at 03:59
  • If you can use curl to access your endpoint over HTTPS, example `curl -i https://example.com` but the same URL fails in a browser, then turn on the debugger in the browser and analyze what is happening. – John Hanley Jul 03 '19 at 04:03
  • No, the issue happens on my local laptop, but not on a remote server. Even curl locally gives the 404. But I could access the run.app domain just fine. So I'm not sure where the problem is occurring. – Tri Nguyen Jul 03 '19 at 04:23
  • There's currently an issue affecting the Cloud Run service experiencing intermittent HTTP 404 responses for Cloud Run services with custom domains. I can't provide you with an ETA for resolution but work is ongoing. – LundinCast Jul 03 '19 at 07:33
  • Thanks @LundinCast for the tip. If there's no where I could go to keep up to date with that issue, could you please check back in here if you know when it has been resolved? – Tri Nguyen Jul 03 '19 at 12:52

1 Answers1

2

As @LundinCast pointed out, there seems to be an outage on the Google server side. I'll monitor the situation and mark this as resolved for now.

Edit: I'm guessing this is related to https://status.cloud.google.com/incident/cloud-networking/19016

Tri Nguyen
  • 9,950
  • 8
  • 40
  • 72