Comments (2)
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.
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)
- Facade is published as CDN and not Cdn HOT 1
- upload folder in mix url HOT 2
- CDN not working as expected HOT 3
- Comparison between S3 and local files is not working
- issue with displaying Images in blade file HOT 3
- Wrong paths on S3 after composer update HOT 4
- How can I test without effecting prod, and refactoring everything? Prefix?
- Embedding CSS/SCSS images has no /public/ in the link HOT 12
- CDN config file cdn.php not found
- Support for Laravel 5.8 HOT 4
- Your requirements could not be resolved to an installable set of packages HOT 1
- Laravel 6.0 Support HOT 1
- New release tag 3.0 HOT 1
- Laravel 8 support HOT 1
- Trying to access array offset on value of type null HOT 7
- How to run in a scheduled task or trigger on image upload HOT 1
- Support for Laravel 9 HOT 1
- laravel/framework 9 require symfony/finder ^6.0 HOT 3
- Laravel 10 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravelcdn.