[英]com.algorithmia.APIException: 308 unexpected API response
I'm using algorithmia, a repository of trained ML functions on the Internet. 我正在使用Algorithmia,这是Internet上经过训练的ML函数的存储库。 Few weeks ago, an issue showed up, and since then, haven't been able to figure out what's going on.
几周前,出现了一个问题,从那以后,一直无法弄清发生了什么。 I'm executing this code, which can be found on their official site.
我正在执行此代码,可以在其官方网站上找到它们。
import com.algorithmia.Algorithmia;
import com.algorithmia.AlgorithmiaClient;
import com.algorithmia.algo.AlgoResponse;
import com.algorithmia.algo.Algorithm;
public class Main {
public static void main(String[] args) throws Exception {
String input = "A purely peer-to-peer...";
AlgorithmiaClient client = Algorithmia.client("api_key");
Algorithm algo = client.algo("nlp/Summarizer/0.1.8");
algo.setTimeout(300L, java.util.concurrent.TimeUnit.SECONDS); //optional
AlgoResponse result = algo.pipe(input);
System.out.println(result.asJsonString());
}
}
But this code raises the following exception: 但是此代码引发以下异常:
Exception in thread "main" com.algorithmia.APIException: 308 unexpected API response:
at com.algorithmia.algo.Algorithm.pipeRequest(Algorithm.java:145)
at com.algorithmia.algo.Algorithm.pipe(Algorithm.java:96)
at Main.main(Main.java:13)
I want to help out 我想帮忙
<dependency>
<groupId>com.algorithmia</groupId>
<artifactId>algorithmia-client</artifactId>
<version>[,1.1.0)</version>
</dependency>
Further observations and guessings 进一步的观察和猜测
HttpClient
HttpClient
Charles
Charles
这样的代理一起工作 给定当前日期,2019年7月2日,他们发布了解决此错误的版本1.0.16
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.