Consuming a local REST service

0
Hello,  Calling external APIs is successful, however, when I try to call the same api (or even others) locally (eg. https://localhost:44364/ApiName), the call is unsuccessful, it gives me error 560, how can I solve that and successfully call local APis?
asked
4 answers
1

You will need to add /rest in between, so for instance, “https://localhost:8080/rest/ApiName”

answered
0

Hello Eline,

I just tried to do it that way, I tried: https://localhost:44364/rest/Administration/GetAssets and https://localhost:44364/Administration/rest/GetAssets

But it’s still giving me the same error 560:

answered
0

Do you have an error message in your Studio Pro console when you try to access the REST service from a browser?

 

answered
0

Can you try to delete the actionButton3 on your form and replace it with a new action Button? 

I had this issue two times in my last projects and couldn’t figure out what the ‘generic’ error description is about. Replacing the existing button with a new button helped somehow. Let me know if it helped in your case too :)

Otherwise: Did you already try to access the local API via Postman first so you can be sure that the issue is Mendix related?

answered