Problem with demo (Transform) for creating a Custom Action

I’ve followed the step-by-step demo for the Integration Quick Start (from here https://monday.com/developers/apps/quickstart-integration/)

After following the entire guide when the Action executes, I get a “POST /transformation/transform 502 Bad Gateway” error on my dev server.

Any insight on why the problem is would be much appreciated

Hey @brischnei ,

there are several issues that could cause your problem.

Did you run following command: “npm run start” before you made your request?

Greetings

Hi @TMNXT-Dev,

As per the quick start guide, I launched the server with “npm run expose” (and, in another terminal, “npm run server-with-debugger”).

The server is definitely running and receiving the POSTs (each POST throws the error I mentioned).

The problem is, that you ngrok exposes your localhost to the internet (“npm run expose”) but your server is Not running.

502 error means that something is wrong with your server. TTL also shows that your connection also just makes 1 HOP and disconnects.

Instead of running “npm run server-with-debugger”, enter “npm run start” from your root directory in a separate console and enter the ngrok URL in your browser to test.

Tell me if that worked.

thanks for taking the time on this.

  1. When I run “npm run start” and then browse to the ngrok url, the server responds: {“ok”:true,“message”:“Healthy”}

  2. with “npm run expose” the ngrok tunnel is created, however when browsing there, it appears that the server isn’t running – like you wrote:

image

  1. “npm run server-with-debugger” ngrok returns an error and doesn’t even create the tunnel.

No problem :slight_smile:

When I run “npm run start” and then browse to the ngrok url, the server responds: {“ok”:true,“message”:“Healthy”}

This is a JSON object returned by your server. That actually means your server is running,

with “npm run expose” the ngrok tunnel is created, however when browsing there, it appears that the server isn’t running – like you wrote:

Is just the tunnel you setup. It does not make the server run, just the connection to the internet.

“npm run server-with-debugger” ngrok returns an error and doesn’t even create the tunnel.

There seems to be an issue with the code or a setup, which is not completed. I advise to redo the steps one and two of the guide.