Skip to main content
1-Visitor
Sep 5, 2018 4:53 PM UTC
Question

Connection Error using Rest API Hosted Trial

I am using the hosted trial and trying to get a property of a thing on a hosted server using the following command.

 

http -v -j https://pp-1808241817mn.devportal.ptc.io:443/Thingworx/Things/Motor/Properties/Motor_temp appKey== xxxxxx

 

I get the following error

 

ttp: error: ConnectionError:
HTTPSConnectionPool(host='pp-1808241817mn.devportal.ptc.io', port=443):
Max retries exceeded with url: /Thingworx/Things/Motor/Properties/Motor_temp?appKey=xxx
(Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9958ed18d0>:
Failed to establish a new connection: [Errno -2] Name or service not known',))
while doing GET request to URL: https://pp-1808241817mn.devportal.ptc.io/Thingworx/Things/Motor/Properties/Motor_temp?appKey=xxx

 

What am I missing?

This topic has been closed for replies.

4 replies

5-Regular Member
Sep 5, 2018 5:38 PM UTC

That URL looks like it has the correct format. Can you browse to the server? Free trial servers are shut down after a period of inactivity. 

Translate
cnuga1-VisitorAuthor
1-Visitor
Sep 6, 2018 11:50 AM UTC
Tried again today just after starting the server. Might be some other issue?
Translate
5-Regular Member
Sep 6, 2018 4:27 PM UTC

Can you access your ThingWorx server in a browser? I tried the URL in your questions and I do not get a DNS resolution for pp-1808241817mn.devportal.ptc.io

 

Translate