Closed murraysum closed 2 years ago
Well, this is wild. Thanks for reporting it, and in such a detailed manner. We'll look into it ASAP.
Fix located. Will be deploying today.
And fix is out with mux-ruby 3.5.2. Thanks for bringing this to our attention with such a detailed bug report, it really helped.
@murraysum thanks for the great bug report! π
As part of our OSS contribution program, we'd love to send you some swag as our way of saying thank you and recognizing your work. Please email me at tdoan@mux.com with your details and we'll get something sent out to you! π
@eropple No problem at all. Thanks for fixing this so quickly, much appreciated. Loving the Mux real time API so far, it is awesome. π
@clearlyTHUYDOAN Thank you very much, that is very kind of you. I'll email you my details. π
Issue
In several of the Space API endpoints when variable substitution occurs for the SPACE_ID or BROADCAST_ID there is a
$
prepended to the identifier which makes the path incorrect. As a result the API rejects the request. For example, the create a space broadcast endpoint instead of making a request tohttps://api.mux.com/video/v1/spaces/my_space_id/broadcasts
it makes a request tohttps://api.mux.com/video/v1/spaces/$my_space_id/broadcasts
:The following endpoints are effected:
How to reproduce
The default spaces example for creating a broadcast should show you the error:
You should get API response something like this (redacted the space_id):
Expected behaviour
When variable substitution occurs in the API paths
$
is not prepended to identifiers and API requests are not rejected.Actual behaviour
When variable substitution occurs in the API paths
$
is prepended to identifiers and API requests are rejected.