repman
repman copied to clipboard
Packagist proxy broken for symfony/clock
It seems I can't install symfony/clock component through the packagist repo on the hosted repman instance. I'm having the following behaviour:
$ composer require symfony/clock
In JsonFile.php line 347:
"https://repo.repman.io/p2/symfony/clock.json" does not contain valid JSON
Parse error on line 1:
^
Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
Getting that URL through CURL myself ends up in an empty response:
$ curl -v https://repo.repman.io/p2/symfony/clock.json
* Trying 18.65.39.113:443...
* Connected to repo.repman.io (18.65.39.113) port 443 (#0)
* ALPN: offers h2
* ALPN: offers http/1.1
* CAfile: /etc/ssl/cert.pem
* CApath: none
* [CONN-0-0][CF-SSL] (304) (OUT), TLS handshake, Client hello (1):
* [CONN-0-0][CF-SSL] (304) (IN), TLS handshake, Server hello (2):
* [CONN-0-0][CF-SSL] (304) (IN), TLS handshake, Unknown (8):
* [CONN-0-0][CF-SSL] (304) (IN), TLS handshake, Certificate (11):
* [CONN-0-0][CF-SSL] (304) (IN), TLS handshake, CERT verify (15):
* [CONN-0-0][CF-SSL] (304) (IN), TLS handshake, Finished (20):
* [CONN-0-0][CF-SSL] (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256
* ALPN: server accepted h2
* Server certificate:
* subject: CN=repman.io
* start date: Feb 23 00:00:00 2023 GMT
* expire date: Feb 2 23:59:59 2024 GMT
* subjectAltName: host "repo.repman.io" matched cert's "*.repman.io"
* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02
* SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* h2h3 [:method: GET]
* h2h3 [:path: /p2/symfony/clock.json]
* h2h3 [:scheme: https]
* h2h3 [:authority: repo.repman.io]
* h2h3 [user-agent: curl/7.87.0]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x14180ee00)
> GET /p2/symfony/clock.json HTTP/2
> Host: repo.repman.io
> user-agent: curl/7.87.0
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
< content-type: application/json
< content-length: 0
< server: nginx
< accept-ranges: bytes
< cache-control: public
< date: Tue, 23 May 2023 11:55:26 GMT
< last-modified: Tue, 23 May 2023 11:53:30 GMT
< x-cache: Hit from cloudfront
< via: 1.1 19f569e782b5b925c41d8bc4e292cc7a.cloudfront.net (CloudFront)
< x-amz-cf-pop: AMS1-P1
< x-amz-cf-id: wZzOG9EZgdmiW0OMu1bqIqoNECqhCCrOnK1EvvMqWlpYyuKEXomqIw==
< age: 13
<
* Connection #0 to host repo.repman.io left intact
$
related to: https://github.com/repman-io/repman/issues/651