Re: [google-appengine] Datanucleus enhancement fails with Error: Could not find or load main class com.google.appengine.tools.enhancer.Enhance

2014-03-16 Thread Vinny P
On Sun, Mar 9, 2014 at 2:27 PM, DeadEternally  wrote:

>
> I installed the Google Plugin for Eclipse and created a new Google App
> Engine project just as decribed in
> https://developers.google.com/appengine/docs/java/tools/eclipse. I'm
> getting the error Error: Could not find or load main class
> com.google.appengine.tools.enhancer.Enhance. I'm using Eclipse 4.3 Kepler.
>


Do you have any JRE 6 or older installations on your PC? If so, try
uninstalling them and removing the directory paths from your system's PATH
environment variable.


-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Having problem deploying to Google App Engine from eclipse

2014-03-16 Thread Vinny P
On Thu, Mar 13, 2014 at 10:08 PM, Suhail Gupta 
 wrote:

> As I try to deploy my app to GAE, I get this message :
>
> *java.lang.RuntimeException: Cannot get the System Java Compiler. Please
> use a JDK, not a JRE.*
>
> This happens in spite the fact that I have set JDK as shown
>


Even though you set the correct JDK to use, Eclipse may still be using the
JRE installation. Can you uninstall the other two Java runtimes?

If not, you could try this: go to the Eclipse home directory and set the VM
init parameter by following the directions here:
http://stackoverflow.com/a/19674689


-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] contact form using php and jquery

2014-03-16 Thread Vinny P
On Thu, Mar 13, 2014 at 3:13 AM,  wrote:

> I don't know what to do to have a contact form in one page of my app.
> Everything is working perfectly, except the contact form. Can anyone please
> explain me how should I do it? I posted a question on Stack Overflow, but
> no answer... Here is the link with my code (this works amazinly when used
> in a regular web host...):
> http://stackoverflow.com/questions/22367570/contact-form-using-php-and-jquery-on-gae.
> I've read the sending and receiving email documentation and I could not
> understand. I also read the section about handling forms and got nothing
> from there.
>


Is the myadminemail address the registered administrator on your App Engine
application?

Also, can you try recording the contents of $message and $userName into
logging? Do they show up in GAE logging or do you see an error instead?


-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] App Engine and Google Merchant

2014-03-16 Thread Vinny P
On Fri, Mar 14, 2014 at 10:11 PM, Kevin G  wrote:

>
> Having added a Google Merchant Data Feed that links to my GAE application
> seems to be spiking my instance hours.
> Does anyone know if this is will occur continuosly with Google Merchant
> constantly monitoring my links for valid content?
>



Yes it will. The Merchant data feed is just another HTTP request for your
instances to handle - more traffic means more instances will be needed. If
your merchant feed changes slowly or not at all, what you could consider
doing is caching your prepared feed into memcache or instance memory: that
way an instance can rapidly respond to requests and hopefully lower the
total instances required.



-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] checking if datastore key exists for one small operation only

2014-03-16 Thread Vinny P
I don't think you can do that for the price of a small operation.

An alternative would be to insert the ID of an entity into memcache
whenever it's accessed for other reasons, then check memcache first
whenever you want to do the "existence" check.

-
-Vinny P
Technology & Media Advisor
Chicago, IL

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




On Thu, Mar 13, 2014 at 9:41 AM, James Gilliam  wrote:

> i thought there was a way to see if a database key exists for the price of
> one small operation?
>
> doing keyobj = Key.from_path, followed by filter( '__key__ =', keyobj ),
> followed by query.get() using key only query, you are charged one large and
> one small operation and only get the key returned.
>
> using, get_by_key_name you are charged one large operation, receives the
> entire entity, and it takes longer than the previous.
>
> i have concluded there is no way to check if a key exists for the price of
> a small operation.
>
> does anybody know if there is a way to check whether a key exists for just
> one small operation?
>
> thank you
>
> --
> 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-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] get_num_instances always raises InvalidVersionError

2014-03-16 Thread Prateek Malhotra
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.


On Sun, Mar 16, 2014 at 11:32 AM, Vinny P  wrote:

> On Wed, Mar 12, 2014 at 3:14 PM, someone1  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
>
>
> --
> 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-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] default bucket name in GCS

2014-03-16 Thread Amy Unruh
You're right that the instructions are a bit confusing, sorry -- in this
transitional period, not everyone has a default bucket yet that they can
use.  I'll file an internal bug to improve the docs.
There's no way to make your own default bucket, and the auto-generated
default will always have that name (appname.appspot.com).

The GAE admin console should not be wedged on "project creation in
progress", however -- what is your app id?  You can send to me directly.

 -Amy


On 17 March 2014 06:08, GAEfan  wrote:

> Thanks Amy and Vinny.  I guess I was not clear...
>>
>
> I did realize that I could have gone to the app engine console to add the
> default bucket.   But I only discovered that AFTER I had already added the
> bucket via the Cloud Console, per these instructions:
>
> https://developers.google.com/appengine/docs/python/googlestorage/
>
> where it says, "To use the Cloud Storage API, you MUST complete the
> following prerequisites:", and leads one to creating a bucket that is not
> the free default bucket.  So, I think those instructions are not clear.
>
> My questions was, "After I have already created a bucket in the Cloud
> Console, is there a way to declare it the free default bucket?  Or, must
> the free default bucket always be the appname.appspot.com bucket, created
> via the AE console?"  I have already made a bucket and uploaded to it.  If
> I create the free default bucket via the App Engine Console, then I must
> transfer everything from the first bucket to the free default bucket.
>
> I think the docs should be updated.
>
> Also, the main app I want to do this with is still waiting for the free
> default bucket.  The GAE console message is, "Project creation is in
> progress.", and has been that way for several days.
>
> Thanks
>
> --
> 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-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] default bucket name in GCS

2014-03-16 Thread GAEfan

>
> Thanks Amy and Vinny.  I guess I was not clear...
>

I did realize that I could have gone to the app engine console to add the 
default bucket.   But I only discovered that AFTER I had already added the 
bucket via the Cloud Console, per these instructions:

https://developers.google.com/appengine/docs/python/googlestorage/

where it says, "To use the Cloud Storage API, you MUST complete the 
following prerequisites:", and leads one to creating a bucket that is not 
the free default bucket.  So, I think those instructions are not clear.

My questions was, "After I have already created a bucket in the Cloud 
Console, is there a way to declare it the free default bucket?  Or, must 
the free default bucket always be the appname.appspot.com bucket, created 
via the AE console?"  I have already made a bucket and uploaded to it.  If 
I create the free default bucket via the App Engine Console, then I must 
transfer everything from the first bucket to the free default bucket.

I think the docs should be updated.

Also, the main app I want to do this with is still waiting for the free 
default bucket.  The GAE console message is, "Project creation is in 
progress.", and has been that way for several days.

Thanks

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Cursor Related Errors in Task

2014-03-16 Thread Vinny P
1. The 202 error log should look similar to this:
http://imgur.com/fvRV13P- in particular, it should be returning a 500
HTTP status code indicating
failure. If yours is failing silently and not returning 500, there's
clearly a bug somewhere along the line.

There's no need for a specific exception to spawn; the 500 error will
indicate automatically to the task queue infrastructure to retry the task.

2. Yes, that shouldn't be an issue. It's unusual that it's failing like
that - I've written much more data to logging than that, and it hasn't
failed for me. Perhaps the logging exception isn't the real issue here, and
it's masking some App Engine internal issue. Can you try removing the call
to logging, or add in a short sleep timer between the cursor access and the
log call?

I'm curious to see if another heap space exception pops even when the
logging call is removed - this shouldn't be happening.

3. As I read more and more of this, I feel like the real issue is that
you're hitting App Engine internal rate limits and throttling. On the
surface, your application design seems very straightforward and correct,
but you're hitting odd exceptions that App Engine should easily scale
through. If you have a support contract with Google, you can call them up
and ask them to relax the throttles - if not, then I would start adding
sleep commands at high-throughput parts of your code, and check if that
helps.

4. There are some other threads in this forum about GCS that go into more
detail, but you've essentially hit the right point - internally, the
urlfetch connection to GCS seems to be doing something odd (not clearing
the buffers, etc). I have no idea what the actual issue is since it appears
to be internal to App Engine. The problem only manifests itself if you're
streaming large amounts of data to Cloud Storage though, so it doesn't
affect many apps.

The only way to "fix" it is to allocate new urlfetches periodically,
especially if you run into strange errors like yours.



-
-Vinny P
Technology & Media Advisor
Chicago, IL

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




On Fri, Mar 14, 2014 at 3:55 PM, Evan Ruff  wrote:

> Vinny,
>
> Thank you so much for helping me understand these issues. A couple of
> points:
> 1. I am operating within a task, so it does get rerun; however, the first
> task fails silently without causing an exception so I do not get a chance
> to make the task as failed. This screws up my process.
>
> 2. The log message only happens when a new cursor is retrieved,
> approximately every 30 seconds. No way that operation itself is blowing out
> the heap.
>
> 3. The model object is tiny, a ~10 field POJO.
>
> 4. Glad to hear I'm not the only one finding weirdness with Cloud Storage.
> I'm telling it to waitForOutstandingWrites every 100 records. I would
> assume this would empty the buffer and release the space. Is that not the
> case?
>
> Thanks for any advice!
>
> E
>
> On Friday, March 14, 2014 3:49:04 AM UTC-4, Vinny P wrote:
>>
>> On Wed, Mar 12, 2014 at 6:14 AM, Evan Ruff  wrote:
>>
>>> The 202 is the "exit code" from my process. I've attached the three
>>> major exceptions that I've been getting.
>>>
>>> 1. Mystery202LogMessage - This one seems to happen ~usually on the first
>>> run after a new deploy, but can pop up at other times. The entire doPost
>>> method has been wrapped in a try/catch block, and nothing is ever caught
>>> related to this exception. I'm really unclear as to what's happening. I do
>>> know that it does make it pretty far into the process, as it updates some
>>> datastore entries.
>>>
>>> 2. HeapSpaceOnLog - This happens occasionally when writing out a static
>>> log message. It seems unlikely that my heap was 
>>> THIS99.9%
>>> full that the log message would push it over the top, but hey who knows.
>>>
>>> 3. ApiDeadlineExceededException - I'm trying to get a cursor from the
>>> iterator. I have a 27 second window set on all queries. Once it hits that,
>>> it gets the cursor (this error), reloads the query and sets the iterator to
>>> the itr of the new query. This exception is caught and logged.
>>>
>>> Thanks for any insight! (Oh, I'm using the Java SDK)
>>>
>>>
>>
>> Whoa, that's quite a long list!
>>
>> 1. Mystery202LogMessage - Google has never quite documented what the 202
>> error code means, so it's unclear what's going on. For now, you'll have to
>> treat it as an unavoidable error. The best way to handle it is via task
>> queues - requests that encounter 202 will fail with an error HTTP status
>> code, and you can take advantage of this by configuring the task to retry
>> automatically. If you need to, split the updates over more tasks.
>>
>> 2. HeapSpaceOnLog - It looks like Arrays is trying to acquire too much
>> memory for the copy operation. Can you try batching up the log writing
>> operations? For instance, instead of writing a new log line for each new
>> piece of info (and forcing the under

Re: [google-appengine] Mobile Chess Game

2014-03-16 Thread Vinny P
On Sat, Mar 15, 2014 at 7:21 AM, José Santos  wrote:

> I'm new in this stuff and I have a question for my future project !
> Is It possible to use the Google Backend to implement the
> conditions/logics of a Chess game (in Java)
> and then on an Android/IOS play the game with the info stored in the
> Backend ?
>


Yes you can. The backend doesn't care about the OS that the request
originates on. As long as your client application can speak regular HTTP to
the backend, that's all that matters.


-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Trying to use sax parser on local xml file, deployed version throws file permission exception

2014-03-16 Thread Vinny P
Oops, I made a tiny mistake in my previous email. I meant to say that it's
an argument to XMLReader.parse, NOT parser().



-
-Vinny P
Technology & Media Advisor
Chicago, IL

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




On Sun, Mar 16, 2014 at 10:27 AM, Vinny P  wrote:

> On Thu, Mar 13, 2014 at 2:06 PM,  wrote:
>
> I'm relatively new with GAE but I'm having some problems with running  a
>> parser on a local xml file. I loaded the xml file in a the WEB-INF file and
>> even changed the app-engine-web.xml file to make all xml files resource
>> files. It works fine in development mode but on my deployed version it
>> keeps throwing: java.security.AccessControlException: access denied
>> ("java.io.FilePermission" "WEB-INF/MapInfo.xml" "write")
>>
>
>
>
> You cannot use many of the File operations on App Engine due to the
> sandbox. You have to collect the contents in a different way; one way would
> be to collect an InputStream by calling
> this.getServletContext().getResourceAsStream("path"), then wrapping it
> through org.xml.sax.InputSource, then supplying that as an argument to
> XMLReader.parser().
>
>
> -
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>
>

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] get_num_instances always raises InvalidVersionError

2014-03-16 Thread Vinny P
On Wed, Mar 12, 2014 at 3:14 PM, someone1  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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] hetting error as below after running "localhost:8080" on server where as noting appears on browser(idealy it should be "helloWorld")

2014-03-16 Thread Vinny P
On Thu, Mar 13, 2014 at 4:58 AM, saket pandey  wrote:

>  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
> result = func(*args)
>   File "/usr/lib/python2.7/urllib2.py", line 1215, in https_open
> return self.do_open(httplib.HTTPSConnection, req)
>   File
> "/home/saket/webrtc/app_engine/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py",
> line 387, in do_open
> raise url_error
> URLError:  Authentication Required>
> INFO 2014-03-13 09:53:22,957 module.py:612] default: "GET / HTTP/1.1"
> 500 -
>



Is your current computer on a corporate network or other behind a proxy?
Sometimes this occurs when the local computer has the incorrect proxy
settings.

Also, have you tried uploading this to App Engine production and running
it?


-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Trying to use sax parser on local xml file, deployed version throws file permission exception

2014-03-16 Thread Vinny P
On Thu, Mar 13, 2014 at 2:06 PM,  wrote:

> I'm relatively new with GAE but I'm having some problems with running  a
> parser on a local xml file. I loaded the xml file in a the WEB-INF file and
> even changed the app-engine-web.xml file to make all xml files resource
> files. It works fine in development mode but on my deployed version it
> keeps throwing: java.security.AccessControlException: access denied
> ("java.io.FilePermission" "WEB-INF/MapInfo.xml" "write")
>



You cannot use many of the File operations on App Engine due to the
sandbox. You have to collect the contents in a different way; one way would
be to collect an InputStream by calling
this.getServletContext().getResourceAsStream("path"), then wrapping it
through org.xml.sax.InputSource, then supplying that as an argument to
XMLReader.parser().


-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Is Google App Engine supported in Iran?

2014-03-16 Thread Vinny P
On Thu, Mar 13, 2014 at 5:32 AM, Christer Nordvik 
 wrote:

> Can we host a backend API on GAE from an Android app and expect that the
> Iranian users will have access to the API?
> These links seems to indicate it doesn't work:
>
>
No, your Iranian users won't have access to the API; App Engine blocks
several countries due to export limitations

If you're interested in this topic, you might want to star this issue:
https://code.google.com/p/googleappengine/issues/detail?id=4537 (and it
looks like you already commented on it).


-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Is this a bug?

2014-03-16 Thread Vinny P
On Wed, Feb 26, 2014 at 11:07 PM, 김도연  wrote:

> I have models like this.
> FAIL: test1 (equipments.TestFoo)
> --
> Traceback (most recent call last):
>   File "C:\projects\d7\server\equipments.py", line 40, in test1
> self.assertEqual(0, Bar().foo.number)
> AssertionError: 0 != 1
> FAILED (failures=1)
>
>

Can you explain exactly how you feel this is a bug? And the implications
it's having on your application?



-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] 500 Server Error

2014-03-16 Thread Vinny P
On Mon, Mar 10, 2014 at 1:53 PM, Sharon Schwartz 
 wrote:

>
> When I try to execute my app I get the Server error to try again in 30
> minutes.  30 minutes doesn't help, 1, 2, or however many days doesn't help.
>  Can someone tell me what I am doing wrong?
>
> This is the log contents:
>
> INFO 2014-03-10 13:37:32,628 module.py:612] default: "GET / HTTP/1.1"
> 404 -
>


The log contents are claiming that there's nothing to serve (note the 404
error at the end of the line). You may have a misconfiguration in your
module, or routing your handlers incorrectly.

Can you post the contents of your app.yaml file? Also - to confirm that
you're invoking the dev server correctly - can you try launching the modules
example 
application
and
check if it runs properly for you?



-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] app.yaml error

2014-03-16 Thread Vinny P
On Fri, Mar 14, 2014 at 2:16 AM, Naved Mohammad 
 wrote:

>
> I have created one html site. Then i added the app.yaml file in which i
> mentioned my url to index.html.. Then i tried to run on app engine launcher
> and it worked but when i tried to open the other html pages from the site
> it doesn't come up, though the page name shows up in URL but it shows only
> index.html contentThen i tried to add all the page name in app.yaml
> file but it shows error on the builtup on launcher. I don't understand how
> to connect all the pages of the site? What do i need to write in app.yaml
> file so that it'll open all the pages in browser.
>



It sounds like you're attempting to wildcard all incoming requests to the
index.html file. You need to specifically configure app.yaml's static file
handlers to route incoming requests to the appropriate HTML file. There's a
tutorial on how to do this here:
https://developers.google.com/appengine/docs/python/config/appconfig#Python_app_yaml_Static_file_handlers


-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] BadStatusLine when run dev_appserver

2014-03-16 Thread Vinny P
On Thu, Feb 27, 2014 at 12:01 PM, Amaranth F  wrote:

> My helloworld.py is like this:
>response_headers = [('Content-Type', 'text/plain'),
>('Content-Length', str(len(response_body)))]
>start_response(status, response_headers)
>return [response_body]
>
> then I ran "python dev_appserver.py proj/test" succeeded.
> but I got a BadStatusLine exception when I goto http://localhost:8080.
>
> Did anyone know how to solve this?
>
> BadStatusLine: ''
> Traceback (most recent call last):
>   File "e:\software\python27\lib\httplib.py", line 373, in _read_status
> raise BadStatusLine(line)
>
>


The BadStatusLine error originates from httplib.py, and the source code for
httplib ( http://hg.python.org/cpython/file/2.7/Lib/httplib.py scroll down
to line 373) indicates this error occurs when the server closes the
connection prematurely, or doesn't receive a valid response.

There may be an issue with your local dev environment. Can you try running
the official helloword example application at
https://github.com/GoogleCloudPlatform/appengine-helloworld-python and see
if it works for you?


-
-Vinny P
Technology & Media Advisor
Chicago, IL

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

-- 
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-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.