node.js - Google Cloud Pub/Sub: unable to get request PUSH from GAE endpoint URL -


i have deployed myapp google app engine, setting

runtime: nodejs env: flex 

my app domain

https://myapp.appspot.com

but auto redirected

https://myapp.appspot-preview.com

i have created google pub/sub topic , add subscription, set push endpoint url

https://myapp.appspot-preview.com/_ah/push-handlers/sample

tested endpoint_url postman , it's sure work well, when publish message pub/sub nothing works.

myapp (node.js) endpoint handler:

var cors = require('cors'); var express = require('express'); var app = express(); var bodyparser = require('body-parser'); var http = require('http').server(app); var io = require('socket.io')(http);  app.use(bodyparser.urlencoded({ extended: false })); app.use(bodyparser.json()); app.use(cors());  app.post('/_ah/push-handlers/sample', function (req, res){         console.log('pubsub_____',req.body); //this should printed out         res.status(200).send(); });  //listener io.on('connection', function (socket){         //  });  var server = http.listen(8080, function(){       console.log('app listening on port %s', server.address().port); }); 

this logs of gae, seems pub/sub send request endpoint not go handler gae request log

gae console log

i appreciate :)

i found similar issue mine "cannot receive push message in appengine flexible environment"

it not work us. created push subscription https://{project-id}.appspot-preview.com/push/db/istock ant posted message topic. after can see lot of nginx /push/db/istock post requests in gae app log, 307 code before. nothing changed. no requests passed gae app

https://code.google.com/p/cloud-pubsub/issues/detail?id=49

the latest answer dev team is

we have fix rolling out on next couple of weeks. eta subject change , can extended, should rolled out january 21.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -