You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any time one calls Link#href() on a relative link (e.g. <a href="/users/login" />) a MalformedURLException will get thrown in AbstractResource#absoluteUrl()
MechanizeAgent agent = new MechanizeAgent();
//redirect strategies for agent enabled
private static final Logger LOGGER = java.util.Logger.getLogger(MinimalWorkingExample.class.getName());
Root cause in stack-trace (calling code omitted):
Caused by: java.net.MalformedURLException: no protocol: /users/login?returnurl=%2fusers%2fchat-login
at java.net.URL.(URL.java:586)
at java.net.URL.(URL.java:483)
at java.net.URL.(URL.java:432)
at com.gistlabs.mechanize.AbstractResource.absoluteUrl(AbstractResource.java:237)
... 8 more
The text was updated successfully, but these errors were encountered:
Well, the problem here is with HtmlDocument isn't it? Either itself or its usage. Its .href() method only contains the path, query (and fragment?) elements of the URI, not its protocol or host.
Any time one calls Link#href() on a relative link (e.g.
<a href="/users/login" />
) a MalformedURLException will get thrown in AbstractResource#absoluteUrl()Code reproducing the problem:
assumptions:
Root cause in stack-trace (calling code omitted):
The text was updated successfully, but these errors were encountered: