Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Site Returning "The specified key does not exist."

I have followed the Google Cloud Docs tutorial for hosting a static website:

https://cloud.google.com/storage/docs/hosting-static-website

But know matter what I do, my site (http://www.chillingames.com/), just shows a NoSuchKey 404 error. I registered that domain with Google's Domains with a custom resource record that is set to type "CNAME" and data to "c.storage.googleapis.com.". I tried to make the name "www.chillingames.com" but it is just showing as "www" for some reason.

I have deleted the bucket multiple times and set up a new one with no changes. I have googled around for the last two days but have only found people saying they had a non URL safe character as the name of their bucket and they had to escape it but my bucket's name is literally "www.chillingames.com".

Error that shows up on the page:

<Error>
  <Code>NoSuchKey</Code>
  <Message>The specified key does not exist.</Message>
</Error>

It should show a random HTML page I made that I think has a u list in it.

like image 505
Dylan R Avatar asked May 22 '19 00:05

Dylan R


1 Answers

After looking over John Hanley's suggestions I found my index page, in my bucket, had a txt extension instead of a HTML extension.

like image 199
Dylan R Avatar answered Oct 17 '22 15:10

Dylan R