Skip to content
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

Packagist proxy broken for symfony/clock #653

Open
xvilo opened this issue May 23, 2023 · 2 comments
Open

Packagist proxy broken for symfony/clock #653

xvilo opened this issue May 23, 2023 · 2 comments

Comments

@xvilo
Copy link
Contributor

xvilo commented May 23, 2023

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
$
@jonnylink
Copy link

related to: #651

@mbrodala
Copy link

AFAIS this makes setting up repman in general impossible. I've added the repository to composer.json and now running composer up --lock fails due to this error:

± composer up --lock
Gathering patches for root package.
Loading composer repositories with package information
                                                      
In JsonFile.php line 381:
                                                                              
  "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', '{', '['      
                                                                              

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--patch-only] [-i|--interactive] [--root-reqs] [--bump-after-update [BUMP-AFTER-UPDATE]] [--] [<packages>...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants