Start a new topic

BL custom endpoint only returns {}

I have done a BL custom endpoint:

function onRequest(request, response, modules){

  var logger = modules.logger;

  var uriString = '';

  var opts = {

    uri: uriString,

    method: 'post',

    form: {

      "Content-Type": "multipart/form-data",

      "grant_type": "client_credentials",


      "client_secret": "xxxxx"




  modules.request.request(opts, function( err, resp, body ) {

    if (err) {

      response.body = err;

    } else {





I get back a 200 SUCCESS -- {} 

but no content in the body. 

When I test with Postman accesing Moltin on my mac I get this back:


Could it be that Kinvey does not understand the response?

1 Comment