Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

warnings and fatal error in vodworkflow_drm_fairplay.php #986

Open
Karrtojal opened this issue Aug 14, 2018 · 0 comments
Open

warnings and fatal error in vodworkflow_drm_fairplay.php #986

Karrtojal opened this issue Aug 14, 2018 · 0 comments

Comments

@Karrtojal
Copy link

Karrtojal commented Aug 14, 2018

Executing the example vodworkflow_drm_fairplay.php with only set the parameters in userconfig.png this is the result:

Azure SDK for PHP - FairPlay Dynamic Encryption Sample
Asset created: name=Mezzanine Azure-Video.wmv id=nb:cid:UUID:6ec8da00-ef76-4a14-bdac-987767cc8455
Uploading...
File uploaded: size=3797556
Using Media Processor: Media Encoder Standard version 1.1
Created Job with Id: nb:jid:UUID:4c1826ff-0300-bce6-bd93-f1e89fdaa875
Job status: Queued
Job status: Queued
Job status: Queued
Job status: Scheduled
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job Finished!
Asset encoded: name=Encoded Mezzanine Azure-Video.wmv id=nb:cid:UUID:ffdba7be-e581-45d5-bec9-f3e4060242b4
Content Key id=nb:kid:UUID:2b613d99-2167-4ea1-befc-97fb6caf93b5
<br />
<b>Warning</b>:  hex2bin(): Input string must be hexadecimal string in <b>/var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/examples/MediaServices/vodworkflow_drm_fairplay.php</b> on line <b>407</b><br />
FairPlay ASK Content Key id=nb:kid:UUID:718b8123-304e-4f5d-b5be-8ac75ba90754
FairPlay PFX Password Content Key id=nb:kid:UUID:0b52249b-27cf-43a5-885e-fc99c9f45d11
<br />
<b>Warning</b>:  file_get_contents(&lt;path to the pfx file&gt;): failed to open stream: No such file or directory in <b>/var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/examples/MediaServices/vodworkflow_drm_fairplay.php</b> on line <b>397</b><br />
<br />
<b>Warning</b>:  openssl_pkcs12_export(): cannot get cert from parameter 1 in <b>/var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/MediaServices/Templates/FairPlayConfiguration.php</b> on line <b>76</b><br />
<br />
<b>Fatal error</b>:  Uncaught WindowsAzure\Common\ServiceException: Fail:
Code: 400
Value: Bad Request
details (if any): &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;m:error xmlns:m=&quot;http://schemas.microsoft.com/ado/2007/08/dataservices/metadata&quot;&gt;&lt;m:code /&gt;&lt;m:message xml:lang=&quot;en-US&quot;&gt;FairPlay configuration must have FairPlayPfx.&lt;/m:message&gt;&lt;/m:error&gt;. in /var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/Common/Internal/Http/HttpClient.php:405
Stack trace:
#0 /var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/Common/Internal/Http/HttpClient.php(301): WindowsAzure\Common\Internal\Http\HttpClient::throwIfError(400, 'Bad Request', Object(GuzzleHttp\Psr7\Stream), Array)
#1 /var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/Common/Internal/RestProxy.php(144): WindowsAzure\Common\Internal\Http\HttpClient-&gt;sendAndGetHttpResponse(Array, Object(WindowsAzure\Common\Internal\Http\Url))
#2 /var/www/api.azure.0.5.7/vendor/micr in <b>/var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/Common/Internal/Http/HttpClient.php</b> on line <b>405</b><br />

Any idea the reason?
Thanks in advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant