gpt4 book ai didi

java - 如何运行 Kaltura 开源项目 (Java)

转载 作者:行者123 更新时间:2023-12-01 13:06:44 24 4
gpt4 key购买 nike

我从 here 获取 Kaltura java 源代码。我尝试在 Eclipse 中运行此代码,但收到一些错误。主要问题是我如何编译这段代码以获得输出。错误如下所示。

Generated KS locally: [NTk1MmUyNTgxMmU0ODhiOWZhMDgzOTBhOGNlYTA4NThlMmU3OTMxZXw1NDMyMTs1NDMyMTsxMzk4MjI1NTEzOzI7Nzk1Mzt0ZXN0VXNlcjs=] Example failed. com.kaltura.client.KalturaApiException: Invalid KS "NTk1MmUyNTgxMmU0ODhiOWZhMDgzOTBhOGNlYTA4NThlMmU3OTMxZXw1NDMyMTs1NDMyMTsxMzk4MjI1NTEzOzI7Nzk1Mzt0ZXN0VXNlcjs=", Error "-1,INVALID_STR" at com.kaltura.client.KalturaClientBase.getExceptionOnAPIError(KalturaClientBase.java:617) at com.kaltura.client.KalturaClientBase.throwExceptionOnAPIError(KalturaClientBase.java:621) at com.kaltura.client.KalturaClientBase.doQueue(KalturaClientBase.java:274) at com.kaltura.client.services.KalturaMediaService.list(KalturaMediaService.java:316) at com.kaltura.client.services.KalturaMediaService.list(KalturaMediaService.java:305) at com.kaltura.client.services.KalturaMediaService.list(KalturaMediaService.java:301) at Kaltura.list(Kaltura.java:115) at Kaltura.main(Kaltura.java:60)

最佳答案

我猜这是因为您将请求 URL 设置为 http://www.kaltura.com/api_v3/index.php?service=media&action=list下面是返回的 XML。

<xml>
<result>
<error>
<objectType>KalturaAPIException</objectType>
<code>SERVICE_FORBIDDEN</code>
<message>The access to service [media->list] is forbidden</message>
<args>
<item>
<objectType>KalturaAPIExceptionArg</objectType>
<name>SERVICE</name>
<value>media->list</value>
</item>
</args>
</error>
</result>
<executionTime>0.021459817886353</executionTime>
</xml>

不是 GZIP 值。

关于java - 如何运行 Kaltura 开源项目 (Java),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23210412/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com