Grakkit

Grakkit

190 Downloads

HTTPclient Issues

Hye-Dev opened this issue ยท 1 comments

commented

The Grakkit HTTPClient service does not seem to work.

My code:
const response = Spigot.core.fetch(https://api.urbandictionary.com/v0/define?term=lol);
const json = response.json();

Error:
org.graalvm.polyglot.PolyglotException: java.lang.IllegalStateException: java.lang.IllegalAccessException: access to public member failed: sun.net.www.protocol.https.HttpsURLConnectionImpl.setDoOutput[Ljava.lang.Object;@2e385896/invokeVirtual, from public Lookup

commented

The fetch function has been re-implemented and fixed in the latest version of @grakkit/stdlib. Happy get requesting!