Posts: 1
Joined: Fri Jun 04, 2021 4:11 am
Contact: Send private message

API Express service tests OK but doesn't receive data when used


I've set up an API Express project, tested it and it's all good. Works lovely and returns values from the RESTAPI built in to it.

I've imported the service into my app and tested it and all looks's returning data when I test it (on the TEST section of the SERVICE) that looks like this in the test window....

}, {
}, {
}, {.........etc

it returns a few hundred results as it should.

All good so far.

When I call the service in the app and pass the correct parameter (I've checked that the parameter is being passed correctly by logging it in the console then pasting it into the test section of the service with success) then it does not return ANY data. Just an empty array.

I'm running the following on the Success event of the service:

console.log("DataLength: " + data.length);;

but data length is coming out as "0" and the storage variable (which is set up in the Model as the same structure as the response) is just an empty array.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm
Contact: Send private message

Re: API Express service tests OK but doesn't receive data when used


Could you please provide us with more details? Please provide us ( with a backup of that API Express service to test it on our side

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest