InvalidArgumentException(code: 0): Driver [logs] not supported. Any guides on how to debug or identify the invalid exception?

huangapple go评论48阅读模式
英文:

InvalidArgumentException(code: 0): Driver [logs] not supported. Any guides on how to debug or identify the invalid exception?

问题

使用 Laravel 6.20.28 版本。

我有一个导出模块,将 xlsx 文件保存到 Laravel 存储文件夹,然后发送电子邮件到目标地址。有没有办法确定从哪里开始调试?

以下是错误的堆栈跟踪日志:

#0 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Support/Manager.php(90): Illuminate\\Support\\Manager->createDriver()
#1 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Mail/MailServiceProvider.php(94): Illuminate\\Support\\Manager->driver()
#2 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\\Mail\\MailServiceProvider->Illuminate\\Mail\\{closure}()
#3 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\\Container\\Container->build()
#4 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(785): Illuminate\\Container\\Container->resolve()
#5 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(629): Illuminate\\Foundation\\Application->resolve()
#6 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(770): Illuminate\\Container\\Container->make()
#7 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(1245): Illuminate\\Foundation\\Application->make()
#8 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Mail/MailServiceProvider.php(40): Illuminate\\Container\\Container->offsetGet()
#9 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\\Mail\\MailServiceProvider->Illuminate\\Mail\\{closure}()
#10 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\\Container\\Container->build()

.env 文件现在指向 SMTP 而不是日志。

已经使用 config:clear 来刷新 .env。

英文:

Using laravel 6.20.28

i have an export module that saves an xslx file to storage folder in laravel and then sends an email to target address. is there a way to identify where can i start debugging?

here's the stack trace logs of the errors:


#0 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Support/Manager.php(90): Illuminate\\Support\\Manager->createDriver()
#1 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Mail/MailServiceProvider.php(94): Illuminate\\Support\\Manager->driver()
#2 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\\Mail\\MailServiceProvider->Illuminate\\Mail\\{closure}()
#3 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\\Container\\Container->build()
#4 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(785): Illuminate\\Container\\Container->resolve()
#5 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(629): Illuminate\\Foundation\\Application->resolve()
#6 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(770): Illuminate\\Container\\Container->make()
#7 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(1245): Illuminate\\Foundation\\Application->make()
#8 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Mail/MailServiceProvider.php(40): Illuminate\\Container\\Container->offsetGet()
#9 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\\Mail\\MailServiceProvider->Illuminate\\Mail\\{closure}()
#10 /var/www/html/api/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\\Container\\Container->build()

.env file is now directing to smtp not logs

already used config:clear to refresh .env

答案1

得分: 0

这个文件 config/mail.php 怎么样?

英文:

How about this file config/mail.php ?

答案2

得分: 0

我重新启动了主管,然后它正常工作了。 (对于那些遇到相同问题的人)

在Docker中没有注意到,您需要重新启动主管,以便配置缓存也会获取更新的.env文件。

英文:

i went and restart the supervisor and it worked. (to those who encountered the same issue)

didn't notice in docker that you need to restart the supervisor so that the config cache will also get the updated .env file

huangapple
  • 本文由 发表于 2023年2月8日 12:03:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/75381275.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定