Skip to content

Problem with google app engine #54

@kongakong

Description

@kongakong

I am trying out the latest master branch.

First of all, there seems to be a syntax/api issue with UrlfetchBackend.py

--- a/lib/pusher/urlfetch.py
+++ b/lib/pusher/urlfetch.py
@@ -3,7 +3,7 @@
 from __future__ import (print_function, unicode_literals, absolute_import,
                         division)

-import urlfetch
+from google.appengine.api import urlfetch
 from pusher.http import process_response

 class URLFetchBackend(object):
@@ -19,7 +19,7 @@ class URLFetchBackend(object):
       url=request.url,
       headers=request.headers,
       method=request.method,
-      data=request.body,
+      payload=request.body,
       deadline=self.config.timeout,
       **self.options
     )

I applied the above patch to get it to run.

Now there is no more runtime exception. Based on my application log I can see I can send message to the pusher server. However my pusher clients (written in javascript) are not receiving any message.

Any suggestion?

I would also like to know how I can check if I have successfully sent messages to pusher servers, preferably via your some sort of control on pusher website?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions