**Setup**
- MediaWiki 1.35.0-rc.2 (0d674e2)
- PHP 7.2.24-0ubuntu0.18.04.6 (apache2handler)
- MariaDB 10.1.44-MariaDB-0ubuntu0.18.04.1
- VisualEditor 0.1.2 (cc95db5) 18:39, 21 August 2020
- wikimedia/parsoid 0.12.0-a23
**Configuration**
```php
$wgServer = 'https://sandbox.semantic-mediawiki.org';
```
**Issue**
```
[745f57087d025fcdb78807d4] /w/rest.php/sandbox.semantic-mediawiki.org:8142/v3/page/html/Berlin InvalidArgumentException from line 71 of /../w/vendor/guzzlehttp/psr7/src/Uri.php: Unable to parse URI: /w/rest.php/sandbox.semantic-mediawiki.org:8142/v3/page/html/Berlin
```
This was detected while working on and investigating T261044#6406257.
**Backtrace**
```
#0 /../w/includes/Rest/RequestFromGlobals.php(36): GuzzleHttp\Psr7\Uri->__construct(string)
#1 /../w/includes/Rest/Router.php(266): MediaWiki\Rest\RequestFromGlobals->getUri()
#2 /../w/includes/Rest/EntryPoint.php(133): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#3 /../w/includes/Rest/EntryPoint.php(100): MediaWiki\Rest\EntryPoint->execute()
#4 /../w/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#5 {main}
```
**Example**
https://sandbox.semantic-mediawiki.org/w/rest.php/sandbox.semantic-mediawiki.org:8142/v3/page/html/Berlin