Skip to content
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

failed to open stream: HTTP request failed! #79

Open
grantholle opened this issue Oct 31, 2017 · 0 comments
Open

failed to open stream: HTTP request failed! #79

grantholle opened this issue Oct 31, 2017 · 0 comments

Comments

@grantholle
Copy link

grantholle commented Oct 31, 2017

I get this error for only some of my users and I really have no idea how to debug it. I personally cannot recreate it but it's happening to others and the logs show for themselves.

I'm using 4.* in a Laravel 5.1 app.

IronCore\HttpException: http error: 0 | file_get_contents(https://mq-aws-us-east-1-1.iron.io:443/3/projects/5642d05d73d0cd0006000003/queues/sum-prod/messages): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /var/www/html/website/vendor/iron-io/iron_core/src/IronCore.php:412
Stack trace:
#0 /var/www/html/website/vendor/iron-io/iron_core/src/IronCore.php(383): IronCore\IronCore->reportHttpError(0, 'file_get_conten...')
#1 /var/www/html/website/vendor/iron-io/iron_core/src/IronCore.php(357): IronCore\IronCore->callWithRetries()
#2 /var/www/html/website/vendor/iron-io/iron_mq/src/IronMQ.php(155): IronCore\IronCore->apiCall('POST', 'https://mq-aws-...', Array)
#3 /var/www/html/website/vendor/laravel/framework/src/Illuminate/Queue/IronQueue.php(85): IronMQ\IronMQ->postMessage('sum-prod', 'eyJpdiI6IkJtT2V...', Array)
#4 /var/www/html/website/vendor/laravel/framework/src/Illuminate/Queue/IronQueue.php(68): Illuminate\Queue\IronQueue->pushRaw('eyJpdiI6IkJtT2V...', NULL)
#5 /var/www/html/website/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(195): Illuminate\Queue\IronQueue->push('mailer@handleQu...', Array, NULL)
#6 /var/www/html/website/bootstrap/cache/compiled.php(6095): Illuminate\Mail\Mailer->queue('emails.send-now...', Array, 'C:32:"SuperClos...')
#7 /var/www/html/website/app/Http/Controllers/SendNowUpdateController.php(63): Illuminate\Support\Facades\Facade::__callStatic('queue', Array)
#8 [internal function]: App\Http\Controllers\SendNowUpdateController->store(Object(App\Http\Requests\SendNowRequest))
#9 /var/www/html/website/bootstrap/cache/compiled.php(8937): call_user_func_array(Array, Array)
#10 /var/www/html/website/bootstrap/cache/compiled.php(9006): Illuminate\Routing\Controller->callAction('store', Array)
#11 /var/www/html/website/bootstrap/cache/compiled.php(8986): Illuminate\Routing\ControllerDispatcher->call(Object(App\Http\Controllers\SendNowUpdateController), Object(Illuminate\Routing\Route), 'store')
#12 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#13 /var/www/html/website/bootstrap/cache/compiled.php(9657): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#14 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#15 /var/www/html/website/bootstrap/cache/compiled.php(9639): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#16 /var/www/html/website/bootstrap/cache/compiled.php(8987): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#17 /var/www/html/website/bootstrap/cache/compiled.php(8972): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(App\Http\Controllers\SendNowUpdateController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'store')
#18 /var/www/html/website/bootstrap/cache/compiled.php(7917): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'App\\Http\\Contro...', 'store')
#19 /var/www/html/website/bootstrap/cache/compiled.php(7888): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))
#20 /var/www/html/website/bootstrap/cache/compiled.php(7541): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#21 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#22 /var/www/html/website/bootstrap/cache/compiled.php(9657): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#23 /var/www/html/website/app/Http/Middleware/Authenticate.php(47): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24 [internal function]: App\Http\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#25 /var/www/html/website/bootstrap/cache/compiled.php(9649): call_user_func_array(Array, Array)
#26 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#27 /var/www/html/website/bootstrap/cache/compiled.php(9639): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#28 /var/www/html/website/bootstrap/cache/compiled.php(7542): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /var/www/html/website/bootstrap/cache/compiled.php(7530): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#30 /var/www/html/website/bootstrap/cache/compiled.php(7515): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#31 /var/www/html/website/bootstrap/cache/compiled.php(2310): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#32 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#33 /var/www/html/website/bootstrap/cache/compiled.php(9657): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#34 /var/www/html/website/bootstrap/cache/compiled.php(2925): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 /var/www/html/website/app/Http/Middleware/VerifyCsrfToken.php(21): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#36 [internal function]: App\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#37 /var/www/html/website/bootstrap/cache/compiled.php(9649): call_user_func_array(Array, Array)
#38 /var/www/html/website/bootstrap/cache/compiled.php(13008): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#39 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /var/www/html/website/bootstrap/cache/compiled.php(9649): call_user_func_array(Array, Array)
#41 /var/www/html/website/bootstrap/cache/compiled.php(11600): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#42 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /var/www/html/website/bootstrap/cache/compiled.php(9649): call_user_func_array(Array, Array)
#44 /var/www/html/website/bootstrap/cache/compiled.php(12745): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#45 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#46 /var/www/html/website/bootstrap/cache/compiled.php(9649): call_user_func_array(Array, Array)
#47 /var/www/html/website/bootstrap/cache/compiled.php(12682): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /var/www/html/website/bootstrap/cache/compiled.php(9649): call_user_func_array(Array, Array)
#50 /var/www/html/website/bootstrap/cache/compiled.php(2982): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#51 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#52 /var/www/html/website/bootstrap/cache/compiled.php(9649): call_user_func_array(Array, Array)
#53 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#54 /var/www/html/website/bootstrap/cache/compiled.php(9639): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#55 /var/www/html/website/bootstrap/cache/compiled.php(2257): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#56 /var/www/html/website/bootstrap/cache/compiled.php(2240): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#57 /var/www/html/website/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))

Like I said, I can't recreate it. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant