Composer update/install laravel encountered curl error 28
P粉536909186
P粉536909186 2023-11-05 19:53:02
0
1
993

I searched several websites, several topics in stackoverflow and tried several methods to solve

  1. Reinstalled composer
  2. Reinstalled xampp
  3. Change IPv6 to IPv4 -> Temporarily solved
  4. Tried on another computer -> Same network
  5. I saved my github token in composer.json and then another error occurred
  6. Use V PN as recommended
  7. I cloned laravel in github, but when I need to update its composer "autoload" I still get the same error on random themes, sometimes laravel/symfony etc.
  8. I tried changing php.ini based on Fileinfo not working in Xampp v3.2.1 [duplicate]: First there was no ";extension=php_fileinfo.dll", instead I found extension=fileinfo itself was not commented
  9. For the timeout, I changed the extension_max from 120 to 360 //My memory is 16
  10. I'm in an online php bootcamp and no one has the same error and when I ask for help no one can help me

I'm ready to provide more information, maybe I'm trying a good approach in the wrong way appreciate.

- Downloading laravel/sail (v1.16.2) Failed to download symfony/http-foundation from dist: curl error 28 while downloading https://api.github.com/repos/symfony/http-foundation/zipball/90f5d9726942db69490fe467a3acb5e7154fd555: Operation timed out after 10008 milliseconds with 0 out of 0 bytes received Now trying to download from source - Syncing symfony/http-foundation (v6.1.5) into cache Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos When working with _public_ GitHub repositories only, head to https://github.com/settings/tokens/new?scopes=&description=Composer+on+Mom+2022-10-06+2353 to retrieve a token. This token will have read-only permission for public information only. When you need to access _private_ GitHub repositories as well, go to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+Mom+2022-10-06+2353 Note that such tokens have broad read/write permissions on your behalf, even if not needed by Composer. Tokens will be stored in plain text in "C:/Users/whowe/AppData/Roaming/Composer/auth.json" for future use by Composer. For additional information, check https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth Token (hidden):

New attempt:

Following the suggestion of Mr. NicoHaase I reviewed the IPv6 part The results are as follows:

Downloading laravel/laravel (v9.3.8) Failed to download laravel/laravel from dist: curl error 28 while downloading api.github.com/repos/laravel/laravel/zipball/…: Operation timed out after 10005 milliseconds with 0 out of 0 bytes received Now trying to download from source

(I can take screenshots of every step I make)

All restrictions solved my problem But I think the missing answer is related to proxy (31/10/2022)

P粉536909186
P粉536909186

reply all (1)
P粉043566314

Use a proxy! If you are using Linux:

Then use composer command If using socks5:

Then use composer command.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!