0

I was trying to run artisan command in my beanstalk setup, but keep getting this error.

enter image description here

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.

enter image description here

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 ?

2
  • 1
    Argument one is $url which here comes from config('app.url'). Might indicate your .env file is not being read. Try setting the app.url config variable directly to see if that works Commented Mar 30, 2022 at 21:17
  • This answer worked for me. Commented Jul 12, 2022 at 8:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.