Describe the bug
First, let me say that I'm not sure if there is anything that can be done on the code side to prevent this (maybe async?). I'm simply reporting this because it took me the better part of a day to troubleshoot the issue. There is obviously an easy fix for the user -- just open the Ray app or remove the ray() call.
Additionally, it took me so long to troubleshoot the issue because I wasn't actually using a ray() call but rather using a @dump() directive in my blade file.
The bug: if you're utilizing a ray() call in your application but the Ray application isn't started then there is a significant (2 second) delay waiting for a response.
Versions
Ray: v2.1.1.0
spatie/ray: v1.36.0
spatie/laravel-ray: v1.30.0
PHP: v8.1.10
Laravel: v9.30.0
OS: Windows 10 Build 21H2
To Reproduce
Steps to reproduce the behavior:
Close out of all Ray applications and background processes (or reboot computer).
Initiate requests to your own application that are using a ray() call.
Observe slow request.
Expected behavior
Near instant responses.
Screenshots
🟥 Here is when the Ray application isn't started:
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
Describe the bug First, let me say that I'm not sure if there is anything that can be done on the code side to prevent this (maybe async?). I'm simply reporting this because it took me the better part of a day to troubleshoot the issue. There is obviously an easy fix for the user -- just open the Ray app or remove the
ray()
call.Additionally, it took me so long to troubleshoot the issue because I wasn't actually using a
ray()
call but rather using a@dump()
directive in my blade file.The bug: if you're utilizing a
ray()
call in your application but the Ray application isn't started then there is a significant (2 second) delay waiting for a response.Versions
To Reproduce Steps to reproduce the behavior:
ray()
call.Expected behavior Near instant responses.
Screenshots 🟥 Here is when the Ray application isn't started:
🟩 Here is when the Ray application is started.