ivanvermeyen / laravel-google-drive-demo

Laravel & Google Drive Storage - Demo project with Laravel 5.4
403 stars 155 forks source link

laravel supervisor refresh token #89

Open ivankorobchuk123 opened 3 years ago

ivankorobchuk123 commented 3 years ago

I have queues at the supervisor. I get a 401 error every 24 hours. it is possible that the supervisor is not updating the token. How to force supervisor to read new token? Thank!!

ivanvermeyen commented 3 years ago

Hello,

I created the tokens as described in the readme (including the refresh token). They never change, so they should be working. I haven't used the credentials for a long time and when I tried the demo app just now, everything still worked.

Was there a more descriptive error message? Maybe a quota issue?

ivankorobchuk123 commented 3 years ago

Ok, I fixed it with command Artisan::call('queue:restart');

PaolaRuby commented 2 years ago

https://github.com/masbug/flysystem-google-drive-ext/pull/34

fatihtoprak commented 1 year ago

Ok, I fixed it with command Artisan::call('queue:restart');

should i add queue:restart end of my command or ?

ivankorobchuk123 commented 1 year ago

I'm not sure, I just put in front of the front of the queue

public function handle()
     {
         Artisan::call('queue:restart');

I know it's a crutch) but I don't have time to break