laravel-firebase icon indicating copy to clipboard operation
laravel-firebase copied to clipboard

Symfony response setContent() error

Open ebiboy2 opened this issue 2 years ago • 1 comments

I get this error Symfony\\Component\\HttpFoundation\\Response::setContent(): Argument #1 ($content) must be of type ?string, Kreait\\Firebase\\Auth given, called in /home/david/Documents/myNotifyApp/vendor/laravel/framework/src/Illuminate/Http/Response.php on line 72 when i call return $appAuth = Firebase::project('rabaflow-aecd0')->auth(); All credentials are correct. What could be wrong?

ebiboy2 avatar Jul 27 '22 00:07 ebiboy2

Hey 👋

it looks as if you're returning the Auth component in a Controller Action instead of a string, view() or Response, but this is the only information that I can extract from the error.

If you'd like me to make more than an uneducated guess, you'd have to share some code and what you're trying to achieve 🙏

jeromegamez avatar Jul 27 '22 04:07 jeromegamez

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let me know if that works for you by leaving a 👍. Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Sep 23 '22 08:09 github-actions[bot]