Git Product home page Git Product logo

Comments (2)

cruex-de avatar cruex-de commented on August 26, 2024

Aws\Exception\CredentialsException : Error retrieving credentials from the instance profile metadata server. (cURL error 28: Connection timed out after 1000 milliseco
nds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html))

at D:\wamp\www\git*\cms\vendor\aws\aws-sdk-php\src\Credentials\InstanceProfileProvider.php:88
84| return (string) $response->getBody();
85| })->otherwise(function (array $reason) {
86| $reason = $reason['exception'];
87| $msg = $reason->getMessage();

88| throw new CredentialsException(
89| $this->createErrorMessage($msg)
90| );
91| });
92| }

Exception trace:

1 Aws\Credentials\InstanceProfileProvider::Aws\Credentials{closure}(Object(GuzzleHttp\Exception\ConnectException))
D:\wamp\www\git*\cms\vendor\guzzlehttp\promises\src\Promise.php:203

2 GuzzleHttp\Promise\Promise::callHandler([Object(GuzzleHttp\Exception\ConnectException)])
D:\wamp\www\git*\cms\vendor\guzzlehttp\promises\src\Promise.php:156

Please use the argument -v to see more details.

I think I have the same problem is there a fix?

my problem maybe fixed this command: "php artisan config:clear" now its working.

from laravelcdn.

PunchRockgroin avatar PunchRockgroin commented on August 26, 2024

This was a tricky one, but I've found that php artisan config:cache breaks the implementation because in laravelcdn/src/Publiux/laravelcdn/Providers/AwsS3Provider.php it's just using the S3Client without providing the 'credentials' key => value. When the config is cached, as far as I know the .env file is not loaded or whatever, as if you call env() after cache the values return null.

So when I do config:cache, I make sure that I use the .aws/credentials file outlined in the docs below https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#credentials

This way I can cache the config first, and then deploy assets after I've yarn build production

from laravelcdn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.