java app.yaml api_version

82 views
Skip to first unread message

Anthony DeFrancesco

unread,
Jun 14, 2015, 9:48:38 PM6/14/15
to google-a...@googlegroups.com
I am unable to upload my application to the google app engine using the gcloud or appcfg.py. I receive an http 400 and found the error was 

Error 400: --- begin server output ---

api_version '1' is not supported by the 'java' runtime.

--- end server output ---


This is my app.yam (application and version aren't required for gcloud preview and its declared in the CLI for appcfg.py)

runtime: java

api_version: 1

threadsafe: true


handlers:

  - url: /*

    static_dir: /

 


What is the valid api_version for java? I searched and could not find it. https://cloud.google.com/appengine/docs/java/configyaml/appconfig_yaml doesn't have it listed but both deployment tools require the api_version

Michael (Cloud Platform Support)

unread,
Jun 16, 2015, 3:10:12 PM6/16/15
to google-a...@googlegroups.com, Anthony DeFrancesco
Hi Anthony,

I am currently unable to reproduce your issue with the App Engine SDK 1.9.21. It's possible that this is related to an older version of the SDK, which version of the GAE SDK are you currently using?

I would also recommend trying the following:
  1. Remove the api_version element
  2. Move the app.yaml file to the war/WEB-INF folder
  3. Run appcfg.sh/appcfg.cmd instead of appcfg.py (.sh is for java projects on Mac OS or Linux, and appcfg.cmd is for java projects on Windows). The appcfg.py is only for python or go runtimes, which could also be causing your issue.
Let me know if that helps.

Cheers!

Anthony DeFrancesco

unread,
Jun 16, 2015, 3:12:08 PM6/16/15
to google-a...@googlegroups.com

Yeah my issue was using the wrong appcfg and missing part of the java instructions. Thank you!


--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/fRvFm5idnv4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/c41ef136-3a69-4ceb-a39c-9fc3231ff763%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Anthony DeFrancesco

Reply all
Reply to author
Forward
0 new messages