-
Notifications
You must be signed in to change notification settings - Fork 49
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
Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ #416
Comments
I'm experiencing the same issue. Did you manage to resolve this issue @mezdn? Code:
|
For anyone else encountering this issue: It is most likely a problem with the url or ModelCallback model-object you are providing. The json issue most likely indicates the response does not match the expected model object. For my case specifically, "https://vimeo.com/foo/bar" is the web-url for a vimeo video. The api to fetch The following code is now working for me:
|
Thank you very much rvanderlinden for your advice, now I have it working like a charm. Just a small typo in the vimeoUrl part: val vimeoUrl = "video/foo" it should be "videos/foo" instead of "video/foo". In plural instead of singular. |
@iganinja Glad to be of help. Sorry about the missing s, it probably slipped in when converting project-code to example. Edited for future reference. |
Issue Summary
Getting the error:
Here's my code:
And these are the important methods in TestApp:
The text was updated successfully, but these errors were encountered: