symfony / recipes

Symfony Recipes Repository
https://github.com/symfony/recipes/blob/flex/main/RECIPES.md
MIT License
956 stars 472 forks source link

https://raw.githubusercontent.com/symfony/recipes-contrib/flex/main/index.json file could not be downloaded (HTTP/2 404 ) #1251

Closed melroy89 closed 8 months ago

melroy89 commented 8 months ago
$ composer clear-cache
Cache directory does not exist (cache-vcs-dir): 
Clearing cache (cache-repo-dir): /home/melroy/.cache/composer/repo
Cache directory does not exist (cache-files-dir): 
Clearing cache (cache-dir): /home/melroy/.cache/composer
All caches cleared.

$ APP_ENV=dev APP_DEBUG=1 php bin/console cache:clear -n

 // Clearing the cache for the dev environment with debug true                                                          

 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.                                            

$ composer update "symfony/*"

In CurlDownloader.php line 630:

  The "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/main/index.json" file could not be downloaded (HTTP/2 404 )  

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] [-i|--interactive] [--root-reqs] [--] [<packages>...]

Which is strange, since when I got to this URL the file does exists.. How is this even possible??

And yes. I do have outdated package I like to update (composer outdated):...

symfony/dotenv                     v6.3.0   v6.3.7  Registers environment variables from a .env file
symfony/flex                       v2.4.0   v2.4.1  Composer plugin for Symfony
symfony/form                       v6.3.6   v6.3.7  Allows to easily create, process and reuse HTML forms
symfony/framework-bundle           v6.3.6   v6.3.7  Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client                v6.3.6   v6.3.7  Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/lock                       v6.3.6   v6.3.7  Creates and manages locks, a mechanism to provide exclusive access to a shared resource
symfony/messenger                  v6.3.6   v6.3.7  Helps applications send and receive messages to/from other applications or via message queues
symfony/monolog-bundle             v3.8.0   v3.10.0 Symfony MonologBundle
symfony/security-bundle            v6.3.6   v6.3.7  Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/serializer                 v6.3.6   v6.3.7  Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
symfony/translation                v6.3.6   v6.3.7  Provides tools to internationalize your application
symfony/validator                  v6.3.6   v6.3.7  Provides tools to validate values
symfony/yaml                       v6.3.3   v6.3.7  Loads and dumps YAML files
melroy89 commented 8 months ago

I removed now all packages in vendor. Maybe it was an issue with Composer and GitHub Private access tokens -.-

image

Registering a new private access token under GitHub and entering this new token in composer fixed the problem. Just for others.