Re: [google-appengine] 400 bad request

471 views
Skip to first unread message

Takashi Matsuo

unread,
Dec 28, 2012, 12:12:23 AM12/28/12
to google-a...@googlegroups.com

Hi Akshay,

Can you share your appengine-web.xml or app.yaml?


On Wed, Dec 26, 2012 at 1:03 PM, Akshay Pakanati <akshayp...@gmail.com> wrote:
I am new to app engine.
   I've created a simple Java web application with one html page. but am getting error as
Unable to update:

com.google.appengine.tools.admin.HttpIoException: 

Error posting to URL: 


app_id=cvsrportal&version=2&

400 Bad Request

Invalid runtime or the current user is not authorized to use it."
please help me out..
  Thank you. 

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/ARv7hw-cSKMJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Takashi Matsuo | Developers Advocate | tma...@google.com

Akshay Pakanati

unread,
Dec 31, 2012, 9:20:34 AM12/31/12
to google-a...@googlegroups.com
thank you for replying..
here is my appengine-web.xml

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>cvsrportal</application>
  <version>2</version>

  <!--
    Allows App Engine to send multiple requests to one instance in parallel:
  -->
  <threadsafe>true</threadsafe>

  <!-- Configure java.util.logging -->
  <system-properties>
    <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
  </system-properties>

  <!--
    HTTP Sessions are disabled by default. To enable HTTP sessions specify:

      <sessions-enabled>true</sessions-enabled>

    It's possible to reduce request latency by configuring your application to
    asynchronously write HTTP session data to the datastore:

      <async-session-persistence enabled="true" />

    With this feature enabled, there is a very small chance your app will see
    stale session data. For details, see
  -->
    <sessions-enabled>true</sessions-enabled>
</appengine-web-app>

appengine-web.xml

Takashi Matsuo

unread,
Jan 8, 2013, 1:21:24 PM1/8/13
to google-a...@googlegroups.com
Hi Akshay and Miguel,

Are you using --use_java7 flag when deploying the app?
If so, you need to be invited to the trusted tester program in order to use the java7 runtime. You can apply the tester program at:

Thanks,


On Tue, Jan 8, 2013 at 9:03 AM, Miguel M. <info...@gmail.com> wrote:
Same issue here. 

I've download photo-sharing-demo app from tutorial section but still getting this error every tyme I try to upload it to my App Engine account. This happens also with a simple Hello World application. None of them allow uploading and throw Error 400.

Here's the ouput:

Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=x2-tokyo-carving-k&version=1&
400 Bad Request
Invalid runtime or the current user is not authorized to use it.

at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:293)
at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:644)
at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:449)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:124)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:371)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:53)
at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:1072)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:219)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:102)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:98)
com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=x2-tokyo-carving-k&version=1&
400 Bad Request
Invalid runtime or the current user is not authorized to use it.

at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:376)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:53)
at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:1072)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:219)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:102)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:98)
Caused by: com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=x2-tokyo-carving-k&version=1&
400 Bad Request
Invalid runtime or the current user is not authorized to use it.

at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:293)
at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:644)
at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:449)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:124)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:371)
... 5 more

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/98s06m4XsWEJ.

To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Reply all
Reply to author
Forward
0 new messages