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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Error while consuming web service:Connection refuse connection failed

Nour4
8-Gravel

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

ACCEPTED SOLUTION

Accepted Solutions
VladimirRosu
19-Tanzanite
(To:Nour4)

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

 

 

VladimirRosu
19-Tanzanite
(To:Nour4)

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 ?
Announcements


Top Tags