I have an app with one backend running. Call it "fred".

My web client hits my app on the default version (as is normal). The
handler sets up a channel subscription, yada yada. Other bits of the
code happily send information up the channel using
channel.send_message() .

My backend, however, is in a different code version (called "fred",
same as the channel, this is how backends work as far as I can tell).

So I have two versions: default and "fred".

When the backend "fred" tries to call channel.send_message for a
channel established outside the backend (ie: in code running the
default version), it fails silently. I believe this is because the
subscription id is invalid, given that we're in the wrong codebase
("fred", rather than default).

I've been able to get around this by making a call to a handler on the
default codebase to do the channel.send_message() on "fred"'s behalf
(ie: using <appid>.appspot.com rather than fred.<appid>.appspot.com).
This then works.

Possibly all of this would go away if I was using modules. At some
point in the future I'll convert over.
But I guess I'm just putting this here so someone might notice this
(it's a bit of a trap, a bit annoying), and maybe might tell me if I'm
doing something obviously wrong, need to do it differently.

Thanks

-- 
Emlyn

http://point7.wordpress.com - My blog
https://plus.google.com/u/0/100281903174934656260 - Google+

-- 
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/groups/opt_out.

Reply via email to