get_num_instances always raises InvalidVersionError

77 views
Skip to first unread message

Prateek Malhotra

unread,
Mar 12, 2014, 4:14:55 PM3/12/14
to google-a...@googlegroups.com
Hello All,

I am trying to leverage this new API functionality but no matter what inputs I choose, the modules.get_num_instances function always raises an error. I know I have basic scaling setup for the module and version I'm trying to look this information up for (in the YAML file). Calls to get modules.get_versions works just fine. In my dev server I am passing in my module YAML files as part of my startup script.

This is effecting me on both the SDK (1.9.0) and on Production. I am using Python 2.7 on Arch Linux (64-bit) locally.

Is this just me and something in my environment or a bug that others can confirm?

Thank you.

Vinny P

unread,
Mar 16, 2014, 11:32:11 AM3/16/14
to google-a...@googlegroups.com
On Wed, Mar 12, 2014 at 3:14 PM, someone1 <some...@gmail.com> wrote:
I am trying to leverage this new API functionality but no matter what inputs I choose, the modules.get_num_instances function always raises an error. I know I have basic scaling setup for the module and version I'm trying to look this information up for (in the YAML file). Calls to get modules.get_versions works just fine. In my dev server I am passing in my module YAML files as part of my startup script.



When you say "no matter what inputs I choose" can you expand further on that? get_num_instances requires the name of the module to collect information about, are you supplying anything different to the function?
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com
 

Prateek Malhotra

unread,
Mar 16, 2014, 10:16:42 PM3/16/14
to google-a...@googlegroups.com
Sorry, I meant if I put in the names of the module I want, 'default', or even if I omit all parameters, the error is raised. It was my impression that if the parameters were not supplied, it should pick up the current module/version and return that information to me.


--
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/PuUMW8aLknQ/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.
For more options, visit https://groups.google.com/d/optout.

Vinny P

unread,
Mar 18, 2014, 2:55:55 AM3/18/14
to google-a...@googlegroups.com
On Sun, Mar 16, 2014 at 9:16 PM, Prateek Malhotra <some...@gmail.com> wrote:
Sorry, I meant if I put in the names of the module I want, 'default', or even if I omit all parameters, the error is raised. It was my impression that if the parameters were not supplied, it should pick up the current module/version and return that information to me.



It's strange that an InvalidVersionError is popping up - it means that App Engine doesn't recognize the modules currently running, or that the module isn't a basic scaling module.

How many modules are running within the application? If it's only one module, can you add several modules to the application? Also, are all the uploaded application versions module-based, or do they have the old backend-style configurations? If there are old versions present, delete them off so that only module-based versions exist in the app ID.
Reply all
Reply to author
Forward
0 new messages