Fixed Unable to parse URI: /tests/test:55

Azaly

Active member
My errorlog is full of errors like this:

InvalidArgumentException: Unable to parse URI: /tests/test:55 src/vendor/guzzlehttp/psr7/src/Uri.php:71
Generated by: Unknown account Feb 27, 2020 at 12:06 AM

Stack trace
Code:
#0 src/XF/Http/Reader.php(119): GuzzleHttp\Psr7\Uri->__construct('/tests/test:55')
#1 src/XF/Http/Reader.php(79): XF\Http\Reader->requestUntrusted('get', 'https://artchiv...', Array, NULL, Array, NULL)
#2 src/XF/Http/MetadataFetcher.php(58): XF\Http\Reader->getUntrusted('https://artchiv...', Array, NULL, Array, NULL)
#3 src/XF/Service/Unfurl/Fetcher.php(22): XF\Http\MetadataFetcher->fetch('https://artchiv...', NULL)
#4 unfurl.php(57): XF\Service\Unfurl\Fetcher->fetch()
#5 {main}

Request state
Code:
array(4) {
  ["url"] => string(16) "/unfurl.php"
  ["referrer"] => string(53) "*/conversations/36243/page-92"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["result_ids"] => array(2) {
      [0] => string(4) "2462"
      [1] => string(4) "2462"
    }
    ["_xfRequestUri"] => string(33) "/conversations/36243/page-92"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
  }
}

Error have logged about an hour and now stop. What does it mean and should I do something with this?
 
This looks like it could be a bug. It looks to me like the URL requested here triggered a redirect but to "/tests/test:55". I'm not sure that is a valid URL because of the ":" in it, but we'll need to investigate.

You can generally disregard this error for now.
 
This looks like it could be a bug. It looks to me like the URL requested here triggered a redirect but to "/tests/test:55". I'm not sure that is a valid URL because of the ":" in it, but we'll need to investigate.

You can generally disregard this error for now.

Got one too, not sure what it is exactly

  • InvalidArgumentException: Unable to parse URI: /article/fruit-south-africa-ceo-steps-down-2020-03-12/rep_id:4136
  • src/vendor/guzzlehttp/psr7/src/Uri.php:71
#0 src/XF/Http/Reader.php(119): GuzzleHttp\Psr7\Uri->__construct('/article/fruit-...')
#1 src/XF/Http/Reader.php(79): XF\Http\Reader->requestUntrusted('get', 'https://www.eng...', Array, NULL, Array, NULL)
#2 src/XF/Http/MetadataFetcher.php(58): XF\Http\Reader->getUntrusted('https://www.eng...', Array, NULL, Array, NULL)
#3 src/XF/Service/Unfurl/Fetcher.php(22): XF\Http\MetadataFetcher->fetch('https://www.eng...', NULL)
#4 unfurl.php(57): XF\Service\Unfurl\Fetcher->fetch()
#5 {main}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.1.8).

Change log:
Prevent a URL parsing error when following an HTTP request redirect to a path that starts with a "/" and contains a ":".
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom