I was trying to run artisan command in my beanstalk setup, but keep getting this error.
In Request.php line 334:
Argument 1 passed to Symfony\Component\HttpFoundation\Request::create() must be of the type string, null given, called in /var/app/current/vendor/laravel
/framework/src/Illuminate/Foundation/Bootstrap/SetRequestForConsole.php on line 32
My application is working fine but when I try to run any command the following error keeps on popping up. I was trying to set supervisor tool to run my queues. But it's status is keeps on saying fatal error.
And it has the same error in its log file. Looking at the error it seems that there is some issue with console commands.
env key for APP_URL is properly set and verified.
How can I solve this ?


$urlwhich here comes fromconfig('app.url'). Might indicate your .env file is not being read. Try setting theapp.urlconfig variable directly to see if that works