cancel
Showing results for 
Search instead for 
Did you mean: 

Composer install fails with curl errors from repo.packagist.org - BunnyCDN connection issues

Composer install fails with curl errors from repo.packagist.org - BunnyCDN connection issues

Updated issue description:

Problem: Persistent Composer install failures when using official Packagist repository. Affects both HTTP/1.1 and HTTP/2.

Environment:

  • Environment: Docker containers
  • PHP: 8.1
  • Composer: 2.8.4
  • Magento: 2.4.7-p7

Errors encountered:

curl error 92: HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)curl error 18: transfer closed with 34 bytes remaining to read

 

Key observations:

  • Same errors occur with both HTTP/1.1 and HTTP/2
  • Browser access to same URLs works fine
  • Problem specific to Composer requests from Docker containers
  • BunnyCDN headers visible: Server: BunnyCDN-DE1-864
  • Multiple package downloads fail with same pattern

Troubleshooting attempted:

  • Forced HTTP/1.1 with various timeout configurations
  • Multiple PHP/Composer versions
  • Different Docker networking configurations
  • Cache clearing

Working workaround: Chinese mirror (https://packagist.phpcomposer.com) works perfectly, suggesting infrastructure-specific issue with BunnyCDN serving repo.packagist.org.

Question: Known issues with BunnyCDN infrastructure for Composer requests from Eastern Europe? Is this a regional routing/peering problem?