404 error

86 views
Skip to first unread message

William Taylor

unread,
Dec 27, 2018, 2:02:48 PM12/27/18
to Google App Engine

Error: Not Found

The requested URL / was not found on this server.

404 error

I don't know how to begin dealing with this error. I am trying to view a static website and it works fine on my machine, Windows 10. 
My app. yaml file is:

runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /
  static_files: www/index.html
  upload: www/index.html

- url: /(.*)
  static_files: www/\1
  upload: www/(.*)

George (Cloud Platform Support)

unread,
Dec 27, 2018, 6:04:41 PM12/27/18
to Google App Engine
Hello William, 

Error 404 notFound indicates that either there is no API method associated with the URL path of the request, or the request refers to one or more resources that were not found.

You need to configure your app with app.yaml, to take into consideration the directory where your static files are stored. For reference, and examples, you may have a look at the "Serving Static Files" documentation page. In this example, the directory in question is called "bootstrap". Page "Serving Static Files" for Standard Environment also holds valuable information. 

William Taylor

unread,
Dec 27, 2018, 11:43:25 PM12/27/18
to google-a...@googlegroups.com
Thank you for your response, I am a writer and I am floundering through this. I tried to create Christmas presents that were web programs and completely failed because I couldn't figure out google app engine. I am following your instructions.

Bill

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/b0e92fcb-1ba6-4bc0-b260-9a5629910a45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Harmit Rishi (Cloud Platform Support)

unread,
Dec 28, 2018, 5:54:18 PM12/28/18
to google-a...@googlegroups.com
Hey,

If you are trying to get familiar Google App Engine, I would like to point you at some great resources and tutorials here.  Im not sure which environment you are working within as the link I provided is for Google App Engine: standard environment. However, they are tutorials offered for both Google App Engine: standard and Google App Engine: flexible environment. Regardless, it would be my recommendation to check the "Hello World tutorial" section out as this tutorial provides a guided walkthrough of creating and deploying a sample app on the Google Cloud Platform which will help you get familiar with the interface as well. 

I hope this message finds you well and that you have a fantastic day.

Cheers,

Harmit

Madhukar Jadhav

unread,
Dec 30, 2018, 6:32:36 PM12/30/18
to Google App Engine
i have similar problem
i cloned wbapp/repository from github zorya
deployed app but 404 error while in browser
herethe the code screenshot what code looks like in google cloud code editor except for www directory i created
Screenshot (1870).png

Harmit Rishi (Cloud Platform Support)

unread,
Dec 31, 2018, 6:06:29 PM12/31/18
to google-a...@googlegroups.com
Hi Madhukar,

It seems the screenshot you have attached does not correlate with the description you have provided. Are you receiving a 404 page error on the [PROJECT-ID].appspot.com url for your Google App Engine project? 

Also, I noticed that the screenshot you have provided has some data that maybe considered sensitive. As this is a public forum, It would be my recommendation to redact information from your project such as: Project-id, database names, etc.

Cheers,
Harmit

Madhukar Jadhav

unread,
Jan 1, 2019, 11:00:29 PM1/1/19
to Google App Engine
thank u Harmit,

yes      projectid.appspot.com    throughs the error!

Katayoon (Cloud Platform Support)

unread,
Jan 4, 2019, 7:17:40 PM1/4/19
to Google App Engine

Hi,


I should note that Google Groups are reserved for general Google Cloud Platform-end product discussions and not for technical questions. For technical questions, I recommend that you post your full detailed question to Stack Overflow so that we would be able to assist you further.


Reply all
Reply to author
Forward
0 new messages