Coder Social home page Coder Social logo

Comments (3)

benzend avatar benzend commented on September 2, 2024

I also just made sure it wasn't a CORS problem on my side.

from octoprint-webhooks.

benzend avatar benzend commented on September 2, 2024

The response I get is:

invalid API Response:

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

My backend isn't even responding with an error or anything as if it's not even sending to my API. Do I need to respond with a status code or something?

Update:

I switched from localhost:5000 to localhost:3000 and now I'm getting a new error:

API Error: HTTPConnectionPool(host='localhost', port=3000): Max retries exceeded with url: / (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))

Update 2: Successful send

I decided to try and host my backend on Heroku. Even did the run test and it returned as successful. No idea if I'm getting any data to my API though.

Update 3: I'm dumb

I was hoping localhost would be able to be sent through private servers so that the printer could access them, but localhost is only served on my computer.

from octoprint-webhooks.

benzend avatar benzend commented on September 2, 2024

Solution

If you are running your printer on the same network you're using:

  • Firstly host your app on your localhost on your computer.
  • Find your IP address for your computer.
  • Input a url that will look something like this into your link you want to test, and let's say the PORT is 3000:
    http://111.1.1.122:3000 and have whatever endpoint you have
  • Then you can test!

from octoprint-webhooks.

Related Issues (20)

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.