Parse.com Cloud Code - 定期关闭503 Bad Gateway

时间:2014-09-17 22:18:17

标签: parse-platform

我正在尝试将自定义Webhooks与Parse.com一起使用。我创建了示例app.js文件:

var express = require('express');
var app = express();
app.set('views', 'cloud/views');
app.set('view engine', 'ejs');
app.use(express.bodyParser());

app.get('/test', function(req, res) {
  res.send(req.query.message + "\n");
});

app.listen();

当我第一次尝试到达端点时,它会给我预期的结果:

Andrews-MacBook-Pro:TestApp slabko$ curl "http://testappsa.parseapp.com/test?message=hello"
hello

但是,当我再次尝试时,我得到了这个:

Andrews-MacBook-Pro:TestApp slabko$ curl "http://testappsa.parseapp.com/test?message=hello"
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.6.0</center>
</body>
</html>

当我继续尝试时,有时我会得到预期的结果,但有时候我会得到一个503.

Parse状态页面声明“所有系统正常运行”。

以下是我所看到的示例:https://dl.dropboxusercontent.com/u/1526868/parse502.mov

我的钩子有什么问题?为什么不可靠?

0 个答案:

没有答案