cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Difficulties with entering URL

Mr_Henry_M
14-Alexandrite

Difficulties with entering URL

Hi. I'm trying to enter an URL of xml-file in the service starting with: file: /// ... This is a local file, in other words. It gives an error: "URI does not specify a valid host name". Although I just copy the address of the local file opened in the browser. What's the problem? Need absolute url?

9 REPLIES 9
PaiChung
22-Sapphire I
(To:Mr_Henry_M)

When you say local file, can the Thingworx server reach that location?

When you open it in a browser that means you are opening it client side.

Mr_Henry_M
14-Alexandrite
(To:PaiChung)

Yes, I know that it's a client side. But what does the Thingworx server require to reach the file? Because, apparently, he can't reach him. And I don't really understand exactly this moment. That's why I'm asking.

PaiChung
22-Sapphire I
(To:Mr_Henry_M)

If your Client side and Server side aren't the same box.

Then the Thingworx server is running on a whole different box with it's own domain and account.

You could log into that server and try executing the link on that box to see if it can reach the file or not.

At least this would cover the first requirement, can that box reach the file.

Mr_Henry_M
14-Alexandrite
(To:PaiChung)

Thanks, I'll see, because now I don't have the opportunity. But, if it turns out that it can reach the file, then what else theoretically could be the problem? Or will it disappear?

PaiChung
22-Sapphire I
(To:Mr_Henry_M)

Theoretically ... it should work :)

The other way would be to transfer or map the files into a Thingworx filerepository

Mr_Henry_M
14-Alexandrite
(To:PaiChung)

Ok :)

I tried to transfer. It gives the same error.

PaiChung
22-Sapphire I
(To:Mr_Henry_M)

What does that mean when you say, you tried to transfer?

Did you verify that the server has access to that link from the server itself?

Mr_Henry_M
14-Alexandrite
(To:PaiChung)

I mean, that after transferring into repository TW gives the same error anyway.

Yes, the server has access.

PaiChung
22-Sapphire I
(To:Mr_Henry_M)

If that works, you can run the GetFileListingWithLinks on the repository and use the Link information to do the download.

Top Tags