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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Connection Error using Rest API Hosted Trial

cnuga
10-Marble

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?

4 REPLIES 4

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. 

Tried again today just after starting the server. Might be some other issue?

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

 

Top Tags