Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You'll get the same error as before. But now, you can debug it, and find out where the problem is. Is it due to the way you answered the low-code questions?  Is it due to a bug in one of the PJS functions? Is due to the way you answered , even though you've answered all the low-code questions properly? In this example, if you step through the code in debug, you'll see that the error occurs on the call to PJS API pjs.sendRequest(). The problem here is that the "body" of the POST request is sent as JSON, but the "headers" says that the content type is ""application/x-www-form-urlencoded", so the API pjs.sendRequest() fails. To fix that, you can comment out the "headers" in this code, and test it to verify that it works here.

After the "headers" line is commented out in this code, the call to URL http://localhost:8081/run/pjstips/pjstips_04_2 works, and JSON object "data" is returned to the browser as shown below.

...