Open virginiatong517 opened 7 years ago
@virginiatong517, hello after 7 months ;) I'm really sorry for not responding earlier, I've messed up my notification settings for this repository. If you're still interesting in helping with the issue, a PR is welcome. I'd start with trying to upgrade the GSON to the most recent version (2.8.2) - maybe it'll help?
I am calling the ReportMethod GET and passing in the ReportMetric 'averageTimeSpentOnPage'
When inside the callMethod(String method, Object data, Type resultType) of AnalyticsClient.java, I see that in line 31:
final String response = callMethod(method, request);
this is returning fine and contains{"name":"somename","url":"","counts":["INF"]}
as part of the data."counts"
is expected to be a number or decimal, but in this case is a string "INF". In line 32:return GSON.fromJson(response, resultType);
this throws an error when trying to parse the String "INF" into a Double. The error that I am getting is this:... Would it be possible to fix this? I can also try to make the fix myself and then create a pull request.