Skip to main content
1-Visitor
September 5, 2018
Question

Connection Error using Rest API Hosted Trial

  • September 5, 2018
  • 4 replies
  • 1942 views

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
September 5, 2018

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. 

cnuga1-VisitorAuthor
1-Visitor
September 6, 2018
Tried again today just after starting the server. Might be some other issue?
5-Regular Member
September 6, 2018

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