ERR_CONNECTION_REFUSED (refused to connect) on web service created

january_febrojanuary_febro Member Posts: 12 Contributor II
edited November 2018 in Help

Hi Experts,

I created a webservice and it works fine when i test it but if i use the direct link on my browser it gives me an error of

  This site cant be reached.

  <hostname> refused to connect

   ERR_CONNECTION_REFUSED

 

 I already created an anonymous user and set the permission rights as well as setting the ff. to true:

   

com.rapidanalytics.web.anonymous_resources true
com.rapidanalytics.web.anonymous_services true

and i also read from another forum to add "public" 

http://january:8080/api/rest/public_process/forMODEL?

What seems to be the problem? 

 

Thank you

Tagged:

Answers

  • Edin_KlapicEdin_Klapic Moderator, Employee, RMResearcher, Member Posts: 299 RM Data Scientist

    Hi january_febro,

     

    did you create the user anonymous?

    Since recent API changes the path for anonymous webservices changed to /api/rest/public/process/<webserviceID>

    You will find all other information regarding this topic on http://docs.rapidminer.com/server/administration/user-management/special-users.html

     

    Best regards,

    Edin

  • kevin_reifkevin_reif Member Posts: 6 Contributor I

    Hey,

     

    I have similar problems. I created an anonymous user and gave it all the rights. But when i call a web service like this:

    /api/rest/public/process/

    it can not be found and I get error 404 page not found..

    I can only call it like this:

    /api/rest/process/

    without the public, but that's not what I want..

     

    Hope you can help me and best regards

     

    kevin

  • Edin_KlapicEdin_Klapic Moderator, Employee, RMResearcher, Member Posts: 299 RM Data Scientist

    Hi @kevin_reif,

     

    Please check the name of the Webservice. Since it is an URL special characters like blanks need to be encoded. Just google for URL encoding. A blank is e.g. represented by %20

     

    Happy Mining,

    Edin

  • hardiktechiehardiktechie Member Posts: 1 Contributor I


    You might be facing err_connection_refused error from the browser side, first you must troubleshoot your browser issues and then make any changes on webservice. First apply some basic suggestions such as clearing data, creating new profile and cookies and then apply some advance level recommendations of changing the proxy settings. You can read all suggestions on https://wildtricks.com/chrome/err_connection_refused-chrome/ and check whether this error is fixed or not. One suggestion to troubleshoot browser will surely help you out.

Sign In or Register to comment.