Cloud Code - 503 Bad Gateway Periodically

I am trying to use Custom Webhooks from I created a sample app.js file:

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

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



When I first try to get to the endpoint, this gives me the expected output:

Andrews-MacBook-Pro:TestApp slabko$ curl ""


But, when I try again, I get this:

Andrews-MacBook-Pro:TestApp slabko$ curl ""
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>


When I keep trying, sometimes I get the expected result, but sometimes I get 503.

The Analysis status page requires All System Operations.

Here is an example of what I see:

What's wrong with my hook? Why is it unreliable?


source to share

All Articles