Giter Club home page Giter Club logo

Comments (6)

OutsourcedGuru avatar OutsourcedGuru commented on August 23, 2024

The octo-client assumes that you'll be connecting to a remote computer, hence the DNS name lookup. Try using the OctoPrint's hostname, presumably octopi.local and see if that works.

I use this library myself for a variety of projects so it's useful at least to me; hopefully to others as well.

from octo-client.

Khalid-Alqahtani avatar Khalid-Alqahtani commented on August 23, 2024

I used and it does not work

is there any way to do it locally using the IP

from octo-client.

OutsourcedGuru avatar OutsourcedGuru commented on August 23, 2024

I'll modify the code to allow the use of localhost to equal 127.0.0.1.

from octo-client.

Khalid-Alqahtani avatar Khalid-Alqahtani commented on August 23, 2024

Thank you so much

from octo-client.

OutsourcedGuru avatar OutsourcedGuru commented on August 23, 2024

Sorry, I didn't catch this before. The hostName variable isn't a URL so it shouldn't be decorated with "http://" before it.

exports.hostName = 'localhost';
exports.apiKey = 'REDACTED';
exports.port = 80;

The next version should support changing the default port to 5000.

from octo-client.

OutsourcedGuru avatar OutsourcedGuru commented on August 23, 2024

Version 1.1.3 should now work with the new optional port config variable. Make sure to update your version. I've tested it using localhost before/after the update and this works (assuming that you don't try to put a URL like before).

from octo-client.

Related Issues (4)

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.