Bob.jar error. 'Server returned HTTP response code: 400' (SOLVED)

I’m trying to build with bob.jar.
below the my command:

$ java -jar bob.jar --archive --platform x86_64-darwin resolve distclean build bundle

then I got this error.

2147483647%Exception in thread "main" java.io.IOException: Server returned HTTP response code: 400 for URL: https://github.com/lukas-kasticky/oyster/archive/1.2.zip
 at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
 at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1963)
 at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1958)
 at java.base/java.security.AccessController.doPrivileged(Native Method)
 at java.base/sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1957)
 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1525)
 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509)
 at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:245)
 at com.dynamo.bob.Project.resolveLibUrls(Project.java:1186)
 at com.dynamo.bob.Bob.createProject(Bob.java:418)
 at com.dynamo.bob.Bob.main(Bob.java:471)
Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: https://github.com/lukas-kasticky/oyster/archive/1.2.zip
 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1913)
 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509)
 at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
 at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:329)
 at com.dynamo.bob.Project.resolveLibUrls(Project.java:1168)
 ... 2 more

This seems HTTP error, so I tried fetch libraries and got same error.
Bundle on Defold engine is fine.
I’m Using macOS 10.14, Defold version 1.2.159, latest bob.jar and java version is

$ java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

Strange. Are you able to manually download https://github.com/lukas-kasticky/oyster/archive/1.2.zip ?

1 Like

All libraries are removed from game.project’s dependencies then I installed manually them.
It worked perfectly! Thank you for quick response :smile:

That’s a workaround but it is not optimal.

1 Like

Could you try with bogus --auth and --email arguments?

I.e:
java -jar bob.jar --archive --platform x86_64-darwin resolve distclean build bundle --auth yada --email yada@yada

2 Likes

It worked with dependencies. Thanks a lot!

1 Like