GithubHelp home page GithubHelp logo

Connection refused about openscoring-python HOT 6 CLOSED

v-ko avatar v-ko commented on July 18, 2024
Connection refused

from openscoring-python.

Comments (6)

vruusmann avatar vruusmann commented on July 18, 2024

os = Openscoring("http://localhost:8080/openscoring")
Failed to establish a new connection: [Errno 111] Connection refused

Do you have an Openscoring REST web service running in your local computer, at port 8080?

You can't connect to a service that hasn't been started.

from openscoring-python.

v-ko avatar v-ko commented on July 18, 2024

Thanks for the reply, donno why I'd never used Openscoring before and thought the server got started with the Openscoring constructor.

from openscoring-python.

xalekx avatar xalekx commented on July 18, 2024

Having the same error
ConnectionError: HTTPConnectionPool(host='localhost', port=8090): Max retries exceeded with url: /openscoring/model/TEST12321 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6b9ee1d978>: Failed to establish a new connection: [Errno 111] Connection refused'))

I am using 1.4.5 openscoring on Linux.
Whenever i try to deploy a model with curl the connection works. But evenever i try deploying a model via Openscoring ( python library version 0.4.3) the error above shows.

The server is up and running and i can download or evaluate models but using the python deploy function doesnt work.

Is there any way to fix this?

from openscoring-python.

vruusmann avatar vruusmann commented on July 18, 2024

Is there any way to fix this?

Double-check your configuration. Specifically, I would advise you to check port numbers, as Openscoring-Service typically listens on port 8080, but you're attempting to connect to port 8090.

from openscoring-python.

xalekx avatar xalekx commented on July 18, 2024

My rabbitmq runs on 8080 thats why i am binding it to 8090. I will try to re map rabbitmq to different port and use 8080 for OpenScoring

from openscoring-python.

xalekx avatar xalekx commented on July 18, 2024

Tried with 8080 yetagain.
curl -X PUT --data-binary @/home/TEST2.pmml -H "Content-type: text/xml" http://localhost:8080/openscoring/model/Test2

works just fine

but the code in python

from openscoring import Openscoring
os = Openscoring("http://localhost:8080/openscoring")

kwargs = {"auth" : ("admin", "adminadmin")}

os.deployFile("Test3", "TEST3.pmml", **kwargs)

doesnt work

from openscoring-python.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.