Skip to content
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

VideoStreamRequest->createVideo fails to create new video #28

Closed
hcaz opened this issue Aug 15, 2022 · 2 comments
Closed

VideoStreamRequest->createVideo fails to create new video #28

hcaz opened this issue Aug 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@hcaz
Copy link
Contributor

hcaz commented Aug 15, 2022

When calling the createVideo endpoint as part of the VideoStreamRequest it throws an error due to the wrong content-type header being set. According to the docs the header should be 'Content-Type' => 'application/*+json'. This is available within the Header enum and just needs changing in the VideoEndpoint.php set of constants.

  "content" => array:4 [▼
    "type" => "https://tools.ietf.org/html/rfc7231#section-6.5.13"
    "title" => "Unsupported Media Type"
    "status" => 415
    "traceId" => "00-e85c6c5a7f5df7187fa7438f6282af68-8fdf8a6359a16646-00"
  ]
@ToshY ToshY added the bug Something isn't working label Aug 16, 2022
@ToshY
Copy link
Owner

ToshY commented Aug 16, 2022

Hey @hcaz 👋

Good catch, seems that I missed that one. I'll take a look at the PR.

@ToshY
Copy link
Owner

ToshY commented Aug 17, 2022

Merged #29

@ToshY ToshY closed this as completed Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants