Hi Alan,
Thanks for responding!
On 30/01/13 12:01, Alan Etkin wrote:
Have you updated your app's code before the issue?
Yes, I'm in the process of commissioning this app, and have had to make
many changes to the model as I import real world data, but none in the
relevant period to the application itself.
The issue affects another web2py+GAE app that I've been working on (same
pattern, sends locally under web2py, but not locally under GAE
devserver, or remotely under GAE), but the only change that I've made at
the web2py level (as apposed to individual apps) is to implement routing
- I'm going to try without routing and see if that makes a difference.
It migh help if you could post the relevant part of the app that handles
sending the email. If you did not make code changes or updated web2py,
I'd say it's most surely related to changes made on GAE itself.
In terms of the mail sending, this is web2py's account management
mechanism, completely unmodified - I'm only looking to create accounts
and reset passwords.
I've tested mail sending: -
- Running pure web2py locally: works
- Running the GAE Development server locally: fails
- Running on GAE remotely: fails
...so I think it's related to the GAE mail send mechanism, rather than
GAE's infrastructure (because it fails locally on the GAE dev server) or
an issue with my application as such (because that works locally other
than under the GAE dev server).
As I read it, the error indicates that the mail is being sent over SMTP
(so fails as no sockets on GAE), but looking at the code in tools.py, it
seems that the GAE server should be detected, and its own mail mechanism
used - so my hypothesis is that for some reason that detection is not
firing. However, I'm really not that comfortable deep in the gluon code,
so am not 100% confident of that.
The more I think about it the more I wonder if the use of the router is
an issue - that's something that I'm doing differently in these two
apps, something that changed in the relevant period and something at the
web2py rather than app level.
--
Regards,
PhilK
'a bell is a cup...until it is struck'
--
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.