-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
graal unable to make simple HTTP request #926
Comments
Same here, use goolge api
|
For Cloud Datastore (link above), the error is like:
|
Hmm feels like this should work with latest graal builds? |
@bootstraponline you can try with GraalVM version 19.2.0 or later. Also, use the native-image-agent to automatically detect reflectively accessed elements. I did some local testing using your code, and I had to modify some of the options:
Note: One thing I noticed is when I run the .jar itself with
And when I run the generated native-image with |
Thanks! I think that's the correct result. On previous versions of Graal, the request itself wasn't sent. The simple example is using a mock server with a mock credential so it's not intended to connect. I'll close this issue as solved. |
I have a reproducible example here:
https://github.com/bootstraponline/native-image-GenericJson
Tested on graalvm-ce-1.0.0-rc11 with Java 1.8.0_192 on macOS 10.14.2
Run
./native_build.sh
Run
./gtest
Observe
In addition I also see:
which is not solved by:
Also...
Graal native images are unable to make basic HTTP requests to Google services using the Java client libraries.
The text was updated successfully, but these errors were encountered: