External API call works in Postman but not in Backendless

Backendless Version Online

Client SDK REST

Application ID 41F831D7-1082-9EE4-FF6C-0E7ED3481C00

Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

  1. call API with basic auth
  2. get response 200
  3. receive JSON data back from Companies House of the specified companies profile (GoogleUK in this example) as provide by CH in the body of the response

Actual Behavior

Please provide a description of what actually happens, working from the same starting point.

Be descriptive: “it doesn’t work” does not describe what the behavior actually is – instead, say “the request returns a 400 error with message XXX”. Copy and paste your logs, and include any URLs.

  1. Call the API
  2. get response 200
  3. blank body, there’s no data.

Am I doing something wrong here? when I use exactly the same details in postman I get a response with the company profile as supplied from companies house and the API, but when I follow the guidelines for basic authentication (Basic access authentication - Wikipedia) in Backendless, theres no data in the body of the response.
When I check the cURL Backendless is encoding the username (and password, although the service doesnt use one) to base 64 as per the standard.

so, is it me, again? :wink:

Hi Andrew,

Could you please share a curl request for the API call?

Regards,
Mark

1 Like

Hi @Andrew_Billcliffe,

it looks like you forgot to mark “return result” on the HTTP/s block. You’ll need then to put it into the return input of the purple block.

Regards,
Stanislaw

yeah… it was me. I spent two hours trying to work that one out… thanks Stanislaw!