Skip to main content
John D Herzog
Inspiring
August 3, 2023
Question

Cannot pull information from internal server with UXP plugin

  • August 3, 2023
  • 1 reply
  • 1684 views

I am trying to pull information from our companies internal server and I am getting the error: Permission denied to the url http://192.168.100.100/info.php. Manifest entry not found.

This is what I have in the manifest.

"host": [
{
"app": "ID",
"minVersion": "18.5.0"
}
],
"manifestVersion": 5,
"requiredPermissions": {
"network": {
"domains": [
]
}
},

Is doing a pull from an IP address not allowed or am I doing something else wrong?

This topic has been closed for replies.

1 reply

Community Expert
August 4, 2023

Would it be possible that the URL is not correctly listed under the "requiredPermissions" section in the manifest file.

 

It might also on server settings, firewalls, security policies, etc. Make sure that the server at 192.168.100.100 is configured to allow incoming requests from where your UXP script is.

For example:

{
  "host": [
    {
      "app": "ID",
      "minVersion": "18.5.0"
    }
  ],
  "manifestVersion": 5,
  "permissions": {
    "network": {
      "sites": [
        "http://192.168.100.100/"
      ]
    }
  }
}




John D Herzog
Inspiring
August 4, 2023

I made sure I did not mistype the url by copying and pasting it over from the index.js to the manifest. I can click on the link in the error message and the url comes up. I have tried all types of configurations of having the file listed, just the base folder, using "all'. I have now tried using permissions instead of requiredPermissions, it did not like that either. It wants requiredPermissions.

I have not had an issue of running the php on its own in a web browser or in my previous version of my plugin that is CEP. I am fairly certain is not the server side.

I can swap out this website for it and it will run. It looks to be that is going to an ip address and not to a url.

 

Community Expert
August 4, 2023
  1. SO changing domain to sites didn't work?