-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
TypeError with HTTP Client #49909
Comments
Can you provide a full reproducible example with endpoint and query? |
$endpoint = 'https://waterdrop-nl.myshopify.com/admin/api/2023-10/products/42859018911930/variants.json';
$query = []; //no query This is the last logged url, but it happens sometimes, so I can't guarantee that this URL will reproduce it. Since |
How are you executing this? Within a CLI command? Or through a web request? Could you provide a complete step by step guide at what you're doing? |
The service is deployed and running in the Google Cloud Platform. A scheduled task, that is running every 5 minutes is creating jobs in the Google Cloud Tasks. We're using the We're logging any errors via Sentry, there are 4 of this type today. |
Thanks, I was suspecting this was through a non-web request. I can see an issue here where there's no request object bound yet to the PendingRequest but there's already a connection exception being thrown. Since the connection exception will always have a PSR request object attached, we can simply recreate the request object before sending the event. I've sent in a PR here: #49924 |
Perfect, thank you! 😎 |
Laravel Version
10.42.0
PHP Version
8.3
Database Driver & Version
No response
Description
Looks like a similar issue existed before - #37596.
Relevant stack trace:
Steps To Reproduce
It happens sometimes, when calling
The text was updated successfully, but these errors were encountered: