Forum Discussion
Thanks Christopher, your advice put me in the right track. Between out IT department and myself we sorted it out.
For other people with the same limited ICT skills as myself, my IT guy explained it as such:
(It should probably be classified as a "Lie-to-children" explanation, but it makes sense to me)
When you run a C# method on the server, Aras is following the URL. With the new URL it was going out of the server and trying to find it on the internet, our firewall blocked the script from coming into the server again. So he defined the URL on the local host file......now everything is working.
Regards
Riaan
Hi,
I face a similar issue when using attachPhysicalFile for uploading a file to the server. I use a REST call to upload text content that than shall be converted to a file by Method. The Method works fine when directly started within Innovator. But when I call it from REST I get the exact same error. Do you have more information about "how to define URL on a local host file"? Would be happy about any additional help :)
- riaanh6 years agoCreator II
Hi Angela,
What he did was to add the IP and URL for our server into the "host" file as such:
I hope it helps!
Regards
- angela6 years agoCatalyst II
Hi Riaan,
many thanks for taking your time to answer my question so quickly!
Modifying the host file wasn´t necessary in my case, but your hint lead me to the right track. We use SSL to secure the connection. But I still used a self assigned certificate that wasn´t replaced with a real on yet.
The REST call itself has no trouble with the not trusted certificate. Regular file uploads within Innovator also worked without any trouble.
But the Innovator Method that converts the text into a file and uploads it into Vault server didn´t work, cause it was called from an untrusted source from outside. The file check-in wasn´t possible. The server simply refused the connection to the Vault and returned the "Cannot get OAuthServer discovery document." error message.
I temporary allowed not trusted certificates directly within the C# Method that checks-in the file. This way the final file upload worked.
This one is an interesting topic. There are a lot of situations were a REST call can fail, simply because of basic IT infrastructure challenges.
Angela