-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
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
ResponseReceived event doesn't serialize correctly #37959
Comments
You actually have a question here not an issue. For which is what there is some forums already created. So you can ask this types questions there. https://laravel.com/docs/8.x/events
|
@ajuchacko91 I know you're trying to help but we'd appreciate it if you wouldn't act as a maintainer of this repository. Please only try to help directly with the issue. |
Hi there, Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels: However, this issue will not be locked and everyone is still free to discuss solutions to your problem! Thanks. |
Ok, no problem 😂 I am not planning to take over your job |
Hi @driesvints, I'm sorry, I've created this issue because I think the The documentation says:
But as I described in the OP, the Since this event is was introduced in the last release three days ago (PRs #37917 and #37572), maybe it could be a bug or a expected but undocumented behavior? |
I'm facing the same problem, do you have any solution to that? Thanks. |
Hi @semsphy, what laravel version are you using? and how can I reproduce this issue? |
@ajuchacko91 , i'm using laravel |
Description:
When listening to the event
Illuminate\Http\Client\Events\ResponseReceived
, the HTTP response body is inaccessible, besides being in the payload.Steps To Reproduce:
1 - Make a HTTP request, for example, with a test route in
routes/web.php
:2 - Create listener (e.g.
app/Listeners/ResponseReceivedTestListener.php
):3 - Register the listener in
app/Providers/EventServiceProvider.php
:4 - Go to http://127.0.0.1:8000/test or invoke the HTTP request created in the 1º step;
5 - In the
failed_jobs
table:I'm not experienced enough to tell what the problem exactly is, but I can see the response body in the payload column. I've also tried force rewind the stream cursor but it didn't fix:
and
The text was updated successfully, but these errors were encountered: