Debugging RPC

In the case that you are using RPC inside your app, you might need to debug it. After this article, you will know how to debug RPCs on Make and be an ace of it!

Location of debug tool in RPC

The RPC debug tool can be found by following:

  1. Go to My apps tab

  2. Select your custom app from the list

  3. Go to the REMOTE PROCEDURES tab inside the custom app

  4. Select an RPC you want to debug

  5. Click Test RPC button

Compare the tabs below to understand how things work inside RPC on Make.

By default after creating a new RPC, you have a template of the communication code, which should be modified based on your needs. Check the Customized Communication tab for example.

Inside RPC, you can use the relative path and the full form of the URL. However, we advise you to stick to the relative path across all your RPCs and Modules. A relative path is added to the "baseUrl", that you are supposed to specify inside the App Base (Located: Your App -> Base tab).

Also, there is Parameters tab, which by default is empty. Here you can add any parameter needed. In the same way, you can also do it in the Mappable parameters from a module. Check the Customized Parameters tab for an example.

Any parameter created inside an RPC will be available only for RPC debugging. It will not be visible inside your modules or inside scenarios.

To preview and test parameters, click on the Test RPC button.

RPC debug tool

RPC debug tool works the same way modules do.

  1. Specify the connection and other fields (i.e. parameters) if needed.

  2. Click the Test button.

  3. The call, which you specified before in the RPC communication, will be executed.

Notice that you will see the output which you specified in the RPC communication.

If you specified output as "label" and "value"(with the purpose of using it inside a Select parameter), do not expect to see the full server response there.

Sometimes you might get an empty array as a response. If that's not the response that you expected. Check that you correctly specified the path to the object, which you use inside iterate.

Last updated