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

com.algorithmia.APIException: 308 unexpected API response #17

Closed
toderesa97 opened this issue Jul 1, 2019 · 5 comments
Closed

com.algorithmia.APIException: 308 unexpected API response #17

toderesa97 opened this issue Jul 1, 2019 · 5 comments

Comments

@toderesa97
Copy link

toderesa97 commented Jul 1, 2019

I'm getting this exception while executing the example code found on your website.

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)

Have tried the same using cURL and everything works fine, even with python so my guessing it has something to do with HttpClient or Java itself.

[Details]

  • IDE: IntelliJ ULTIMATE 2019.1
    Build #IU-191.6183.87, built on March 27, 2019
    JRE: 1.8.0_202-release-1483-b39 amd64
    JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    Windows 10 10.0

Thanks for any help you can provide.
Tomás.

@victcebesp
Copy link

The same happening here!
I am using MacOS 10.14.2.
When calling the algorithm via cULR or using python it correctly works. Nevertheless, to make it work from JAVA, I need to have a proxy such as Charles.

Any clue about what is happening?
Thank you very much!

Víctor Ceballos Espinosa

@kennydaniel
Copy link
Contributor

Thanks for reporting this, it is being fixed by PR #16 and I will have it published today as version 1.0.16 of the client.

@kennydaniel
Copy link
Contributor

@toderesa97 @victcebesp algorithmia-client 1.0.16 is live on maven now. That should fix the 308 error. Please let me know if you still hit any problems!

@toderesa97
Copy link
Author

Hello @kennydaniel,

Indeed, the 308 is gone. Thanks.

Tomás.

@victcebesp
Copy link

Hey @kennydaniel! Everything is correctly working now! Awesome job, thank you very much for your fast replies.

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

No branches or pull requests

3 participants