Nithanim / gw2api

A library that provides access to the api of Guild Wars 2.
Apache License 2.0
5 stars 1 forks source link

Exception when I try to load this Item #4

Closed aureldussauge closed 8 years ago

aureldussauge commented 8 years ago

Hello again, I have this Exception when I try to load the item 24672.

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY

An example of code I use to reveal the Exception.

new Thread()
{
    @Override
    public void run()
    {
        try
        {
            ItemInfo itemInfo = new GuildWars2Api().items().get(24672);
            Log.i(TAG, "Loaded");
        }
        catch(Exception ex)
        {
            Log.e(TAG, ex.toString());
        }
    }
}.start();

The item in the API : https://api.guildwars2.com/v2/items/24672