I've written an Artisan command which dispatches a job. The job uses Google Cloud Vision (Image Recognition API) through the Google App Engine. It authenticates the API coection using the standard $this->google_client->useApplicationDefaultCredentials();. The command works perfectly as expected when I manually run it in Artisan. The problem arises when I place the job as a scheduled command in my Keel.php.
protected function schedule(Schedule $schedule)
{
$schedule->command('aotate:top')->everyMinute();
}
The command executes every minute as expected however, digging in to the laravel.log file, I see that it is failing and the stack trace identifies that it "Could not load the default credentials".
Again, this problem only occurs when the command runs triggered by the schedule, not when I manually execute it with artisan. Would LOVE to shed some light on this please, feels very much like a framework bug but if history carries any weight, I'm likely overlooking something.
A link to the full stack trace can be found here.
