2

I'm trying to install Yajra, a Laravel package to handle server-side works of DataTables jQuery Plugin via AJAX option. But I got this problem and I can't fix this. Please do you have anything to help me?

[Composer\Downloader\TransportException] curl error 28 while downloading https://repo.packagist.org/packages.json: Connection timed out after 10000 milliseconds

Darryl Noakes
  • 2,207
  • 1
  • 9
  • 27
Torea PATISSIER
  • 29
  • 1
  • 1
  • 3

4 Answers4

5

I remember i run this command

composer install --ignore-platform-reqs

then CURL error 28 while downloading was resolved.

HamzaKhalid273
  • 355
  • 1
  • 4
  • 11
1

My solution to this error, when I was trying to build a Laravel app with docker, was to change the MTU on the network configuration of the docker container. This depends on the MTU configuration that the host has, in our case was 1400. We had to apply this configuration for the network on the docker-compose.yaml file:

networks:
  my-net:
    driver: bridge
    driver_opts:
      com.docker.network.driver.mtu: 1400

As suggested in this article: Docker MTU Configuration

And then applied this network to all images in the file like this:

MySQL:
  image: mariadb:10.11
  networks:
    - my-net
Sotmir Laci
  • 84
  • 1
  • 6
-1

In my case, the issue happened when I was hotspotting, once I moved to a Wifi network it worked.

dnpg
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 27 '23 at 15:23
  • Pls consider that future readers of the question will be trying to compare their problem with the information you provided. So, type of network (5G? LTE?), and the hotspot (were you in "Low Data" mode on an iPhone), etc. will help out future readers. – benc Feb 28 '23 at 08:53
-1

the problem might be caused by DNS issue , try To Flush the DNS Cache by running this command 'ipconfig /flushdns' if you are using window.

waziriDev
  • 1
  • 1