enjin / enjin-java-sdk Goto Github PK
View Code? Open in Web Editor NEWEnjin Cloud SDK for Java.
Home Page: https://enjin.io/products/platform
License: Apache License 2.0
Enjin Cloud SDK for Java.
Home Page: https://enjin.io/products/platform
License: Apache License 2.0
Trying to make a GetBalances request, the fields have been set properly. This issue refers to using 2.0.0-alpha.2
version. The 2.0.0-alpha.4
master branch currently does not authenticate my project properly, so I can't seem to use that - but that's seperate to what this issue is about.
GetBalances req = new GetBalances()
.filter(new BalanceFilter()
.projectUuid(<uuid>)
.valueIs(Operator.GREATER_THAN)
.value(0)
.wallet(ethAddress));
To explain the issue a bit more, whenever .projectUuid(String)
or .projectUuidIn(String...)
are used, the following error gets thrown
When I exclude the projectUuid, the request gets sent fine, but I apparently have 0 balance even though I have 2 of the same type of asset (an NFT minted) in my wallet, and it should be showing a balance here I would assume. All fields parsed in are accurate, so the request as far as I can tell on my end is fine, but the error still occurs.
So there are 2 issues, 1. is the balance projectUuid and projectUuidIn fields not being able to be set, and 2. I am getting 0 balance from any variation of the request I try to make (that is successful), so I can't tell how many of an NFT someone has.
(Note GraphQLError is a custom error - you guys have implemented it though in EnjinCraft, error should explain the issue)
GraphQLError(message=Variable "$filter" got invalid value {"projectUuid":"<uuid>","wallet":"<wallet>","value":0,"value_is":"GREATER_THAN"}; Field "projectUuid" is not defined by type BalanceFilter., code=400, locations=null, details=null)
at enjin.schemas.BaseSchema$1.onResponse(BaseSchema.java:150)
at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:504)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.lang.Thread.run(Thread.java:831)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by retrofit2.Platform (file:/C:/Users/admin/.m2/repository/com/squareup/retrofit2/retrofit/2.9.0/retrofit-2.9.0.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of retrofit2.Platform
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.