Hi,
we found that there is problem to connect from our UXP plugin on MacOS to a remote server if a fully qualified name is used in a URL.
The only way is currently the pure host name “host” instead of “host.my-domain.com”
This limits the user to have the server inside his own network.
For remote server I found a workaround by adding the IP address and a single hostname into /private/etc/hosts.
Under Windows the UXP plugin can handle urls with and without domain names, as expected.
But under Mac I see only:
index.js:2705 TypeError: Network request failed
at z.o.onerror (uxp://uxp-internal/netjs_scripts.js:2)
at z.m (uxp://uxp-internal/domjs_scripts.js:2)
at uxp://uxp-internal/domjs_scripts.js:2
at Object.runWithNativeHandler (<anonymous>)
at L (uxp://uxp-internal/domjs_scripts.js:2)
at uxp://uxp-internal/domjs_scripts.js:2
at D (uxp://uxp-internal/domjs_scripts.js:2)
at P (uxp://uxp-internal/domjs_scripts.js:2)
at i (uxp://uxp-internal/netjs_scripts.js:2)
when using fetch().
Any clues for that?
Is the character ‘.’ on macOS coded differently? Or must it extra escaped?