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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Error while consuming web service:Connection refuse connection failed

Nour4
7-Bedrock

Error while consuming web service:Connection refuse connection failed

Hello,

i tried to access this url http://localhost:5555/Devices/
to get json response data but  I am getting below error

 Error executing service Message :: Connect to localhost:5555 [localhost/127.0.0.1] failed: Connection refused (Connection refused) - See Script Error Log for more details.

Capture.PNG
but i can access this url with Postman and get response 

service:
Capture2.PNG

thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

You are using localhost as the hostname in both cases. So, is your ThingWorx server installed in the same machine (not VM) as the one from which you're doing the Postman call ?

View solution in original post

2 REPLIES 2
slangley
23-Emerald II
(To:Nour4)

Hi @Nour4.

 

Are you passing some credentials in the Postman call that you're not able to pass when accessing the url directly?  Is it possible that you have a firewall rule at the app level that is allowing Postman to succeed?

 

Regards.

 

--Sharon

 

 

You are using localhost as the hostname in both cases. So, is your ThingWorx server installed in the same machine (not VM) as the one from which you're doing the Postman call ?
Top Tags