-
Notifications
You must be signed in to change notification settings - Fork 8
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
Exception #1
Comments
Experiencing this issue as well. It seems that when response url is pointing to an image file, it immediately crashes. In my case, the site I always run into is "https://www.goo", this throws a FatalException:
Adding a Malformed URL checker in LinkUtil for the imageLink should prevent this crash. |
I am also having similar issue. Any body solved?
|
My problem solved by adding this library offline and catches exception in the line mentioned in the error log. follow the line https://stackoverflow.com/questions/32600325/android-studio-add-library-from-github to add this library offline. and in LinkUtil.class, add exception to the line 98. |
E/UncaughtException: java.lang.IllegalArgumentException: unexpected url: /yts/img/yt_1200-vfl4C3T0K.png
at okhttp3.Request$Builder.url(Request.java:142)
at com.mega4tech.linkpreview.LinkUtil$1.onResponse(LinkUtil.java:144)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:833)
The text was updated successfully, but these errors were encountered: