We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I'm getting an error when using this package. Currently, I'm using Laravel 8 and PHP 7.4
Here's my snippet code
try { Catcher::get() ->sendException($exception, ['version' => config('amf.version'), 'env' => config('app.env')]); } catch (Exception $e) { Log::error($e->getMessage()); }
The $exception variable is an Exception instance. The problem still occurs even without a context.
$exception
Here's the detailed log:
local.ERROR: Array to string conversion . <br>file: /Users/redacted/vendor/codex-team/hawk.php/src/Transport/CurlTransport.php <br>line: 56
I think because we're trying to send an array using curl from this line.
curl_setopt($curl, CURLOPT_POSTFIELDS, $event->jsonSerialize());
My working solution:
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($event->jsonSerialize()));
The text was updated successfully, but these errors were encountered:
@evaleries Hi! Will check it out soon. Thanks!
Sorry, something went wrong.
This Notice still occurs with Symfony 5.4 and php 7.4
Resolved by #58
No branches or pull requests
Hello,
I'm getting an error when using this package.
Currently, I'm using Laravel 8 and PHP 7.4
Here's my snippet code
The
$exception
variable is an Exception instance. The problem still occurs even without a context.Here's the detailed log:
I think because we're trying to send an array using curl from this line.
My working solution:
The text was updated successfully, but these errors were encountered: