nightingale-rest-api-client: Can not connect to REST services on local network and domain-joined hosts

When trying to call a REST service residing on the local or domain-joined network I get the following error message:

An error occurred while sending the request. The text associated with this error code could not be found.

A connection with the server could not be established

Using the command checknetisolation debug -p=S-1-15-2-2472482401-1297737560-3464812208-2778208509-1273584065-1826830168-474783446 I was able to get the following output which basically states that the capabilities for PrivateNetworkClientServer are not enabled in the .appxmanifest file:

C:\WINDOWS\system32> checknetisolation debug -p=S-1-15-2-2472482401-1297737560-3464812208-2778208509-1273584065-1826830168-474783446

Network Isolation Debug Session started.
Reproduce your scenario, then press Ctrl-C when done.
      Collecting Logs.....

Summary Report

Network Capabilities Status
----------------------------------------------------------------------
    InternetClient                Not Used and Insecure
    PrivateNetworkClientServer    Missing, maybe intended


Detailed Traffic Report
----------------------------------------------------------------------

    InternetClient                Not Used and Insecure

 ------------------------------------------------------------------


    PrivateNetworkClientServer    Missing, maybe intended

 ------------------------------------------------------------------
      <ip address of host>

OK.

Please enable this capability for us to be able to call REST services on the local network.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 28 (13 by maintainers)

Most upvoted comments

Also, regarding domain-joined hosts, yes that’s a known issue. I have an upcoming update to add the PrivateNetworkClientServer capability to the app manifest. I’ll ping this issue again once that update is live, and I will ask you at that time to check if the issue was fixed.

I’m sorry for bothering you. I actually didn’t have seen that file. It worked just fine. Thank you once again, keep up with the good work! 😃 👍🏻

Hi @dpaulino I double checked and realised that the worldaround works! I so so so sorry for taking up your time.

The issue was that i didn’t add the port 8000 into the url. LOL. With http://localhost:8000/ everything worked fine.

Once again, thank you for taking the time out to help and create this app. 😃

@delzac whenever you’re ready, can you share your repo link using a new issue? It will be easier to track investigations on your specific scenario in a new issue

@dpaulino Okay! I’ll get back to you here again once its up 😃