-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Compile Error: Declaration of Http\Message\Encoding\FilteredStream::seek(int $offset, int $whence = Http\Message\Encoding\SEEK_SET): void must be compatible with PsrExt\Http\Message\StreamInterface::seek($offset, $whence = NULL) #1718
Comments
|
Psrext represents PSR extension installed as php module and yes it is https://github.com/jbboehr/php-psr, it is required because phalcon 4 needs it and the project is in phalcon4, Here is phalcon4 link https://github.com/phalcon/cphalcon/tree/v4.1.2?tab=readme-ov-file |
You probably triggered a new codepath or updated some library. In particular, your error is that you're using an older ext-psr version that does not have types for its arguments ( You have to either upgrade the ext or downgrade the library. I'm closing here since it's clear that it's not Sentry's fault, but feel free to continue replying if you need more details. |
@Jean85 Thanks for the response, Also i am not using the php-http/message package directly, it is dependency of sentry as you can see here the error is showing in the file:vendor/php-http/message/src/Encoding/FilteredStream.php at line 178 Now ideally it would extend the the Psr\Http\Message\StreamInterface class from psr module which is old, now above package requires "psr/http-message" which overrides the name space of PSR module My main concern is still with how a perfectly running code of sentry, suddenly started throwing error, thanks for the help. |
The change could be in the 429 response from the server. That kind of response is a "Too Many Requests", so you're getting rejected, I don't know if you're making too many requests, if you're out of your paid quota or whatever. The fact that the |
Hey @Jean85, One more question Also JFI i have not explicitly override thanks |
I'll try to answer your doubts point by point:
So, you have a quota configured on your account, and you're exceeding it. |
Okay thanks @Jean85 for clearing out the doubts, I agree with you that older dependency would break sometimes, Also thanks for pointing the doc on php-psr repo, adding psr/http-message:1.0 fixes the issue, Thanks for all the help and let me know if you get any information if there were any changes around 7th march. |
How do you use Sentry?
Sentry SaaS (sentry.io)
SDK version
3.22.1
Steps to reproduce
I didn't do anything, the same code was just working fine, but suddenly this error started popping up and 500 error started coming on my server,
whenever sentry tried to captureException or tried to send transaction.
i digged dipper and found out sentry endpoint was giving 429, i am not sure but might be because of this?
Here is the whole exception
Compile Error: Declaration of Http\Message\Encoding\FilteredStream::seek(int $offset, int $whence = Http\Message\Encoding\SEEK_SET): void must be compatible with PsrExt\Http\Message\StreamInterface::seek($offset, $whence = NULL)
Expected result
It should not break my code if issue is with sentry's code.
Actual result
It is breaking the whole code and server is responding with 500 error
The text was updated successfully, but these errors were encountered: