-
-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GET value of a custom-variable via new HTTP API #2820
Comments
Please give the complete HTTP request you have used. |
|
I can reproduce this bug. |
We have a default route which serves the home page if no other route is matched. companion/companion/lib/UI/Express.js Lines 139 to 142 in a0ad601
The error seems to be that this route is matched before the the api route can match. I don't know why this is happening. All legacy api routes are matched before the default route and all http POST routes are matched before the default route. The route in question is the only GET route for the new api. |
Ok, the reason is, that the new api routes are included here
The default route of the web ui only handles get methods, so all post requests of the new api are fulfilled but the default get will match before any api get route can match. @Julusian you did the way of binding the new api router. Is there any reason for that or can we change it to the same way the legacy api is included? Another more hacky soution would be to not match the default route to |
Is this a bug in companion itself or a module?
Is there an existing issue for this?
Describe the bug
I have tested the Experimental 3.99.0+6806. I want to GET the value of a custom-variable via HTTP API like it's described in the doc. I've tried it with Javascript and php. I always get an html page back:
<!doctype html>
Maybe it's my fault. But I tried it as described in the documentation.
Steps To Reproduce
No response
Expected Behavior
No response
Environment (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: