Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
5

Cannot pull information from internal server with UXP plugin

Engaged ,
Aug 03, 2023 Aug 03, 2023

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?

TOPICS
Scripting , UXP Scripting
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2023 Aug 03, 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/"
      ]
    }
  }
}




Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 04, 2023 Aug 04, 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.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 04, 2023 Aug 04, 2023
  1. SO changing domain to sites didn't work?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 04, 2023 Aug 04, 2023

No. requiredPermissions needs domains under network. Sites works under permissions but uxp wants a requiredPermissions and not a permissions. I can get it to work as long as I have a domain name and not an IP address. Tested that with a domain name/IP group that I know. I've gone to my IT guy at this point to see if we have a domain name for this server.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 04, 2023 Aug 04, 2023
LATEST

I got the domain name from IT, put it in instead of the IP, and it worked. It looks like IP addresses are not allowed with the UXP data transfers.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines