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

java.lang.IllegalArgumentException: Expected the field displayName to be a primitive type in the JSON string but got null #4

Open
denis-hik opened this issue Jan 22, 2025 · 1 comment

Comments

@denis-hik
Copy link

denis-hik commented Jan 22, 2025

ApiResponse<Instance> res = InstancesApi.getInstanceWithHttpInfo(worldId, instanceIdWork);

java.lang.IllegalArgumentException: Expected the field displayName to be a primitive type in the JSON string but got null

Error in:
Insatce.java
if (!jsonObj.get("displayName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the fielddisplayNameto be a primitive type in the JSON string but got%s", jsonObj.get("displayName").toString())); }

@jellejurre
Copy link
Contributor

Interesting, is this when you're authenticated or unauthenticated?

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

2 participants