Comments (3)
I also just made sure it wasn't a CORS problem on my side.
from octoprint-webhooks.
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.
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)
- Content Type HOT 1
- Ability to subscribe to custom events HOT 3
- Using param @job.file.name in PrintDone event results in "None" HOT 7
- Modified settings not saved when saving general setting HOT 7
- API error invalid url no schema supplied HOT 2
- No Webhook when Print Resumed HOT 1
- Custom headers ignored HOT 2
- basic auth using custom header not working HOT 6
- This plugin regularly breaks other OctoPrint settings HOT 3
- Failure during installation of the plugin on.
- unable to configure webhook HOT 1
- Ability to post as Form data? HOT 1
- Webhook after cooldown
- Messages are only sending Topic and Message even when all DATA params are set
- Is there a way to add tabs/buttons to the main UI?
- Request support for PATCH method HOT 1
- "Invalid JSON for DATA setting" HOT 2
- Plugin not loading due to PIL import error (Docker image)
- !!! - PLUGIN HAS MOVED - !!!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint-webhooks.