You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a controller method I was trying to load a relationship. I accidentally used snake case instead of camel case for a 2-word relationship, and Laravel immediately threw a RelationNotFoundException. However, the browser kept on spinning for another 60 seconds before PHP killed execution due to timeout.
The timeout error doesn't happen in a consistent place, I saw a number of different code locations for it, none of which are in the Ignition codebase, but this only happens with Ignition enabled. If I uninstall Ignition, a "whoops" error is triggered immediately.
Using Laravel 8.79 and PHP 8.1. Tested with Ignition 0.0.9 and 1.0.1. Tried setting enable_runnable_solutions => false and solution_providers => [] without any change.
Ok, I'm not able to recreate the 60 second timeout, but I do have some code that consistently takes 10 seconds before returning. Not sure if this is an environment difference between apps, or due to the other app having a database full of data?
Clone https://github.com/miken32/example-app, migrate, seed, and serve. Then try to access /user/1/edit. I consistently get a 10 second delay before the error page displays, which did not occur when using the default facade/ignition 2.17.4. It's always exactly 10 seconds:
Starting Laravel development server: http://127.0.0.1:8001
[Fri Jan 21 11:20:04 2022] PHP 8.1.0 Development Server (http://127.0.0.1:8001) started
[Fri Jan 21 11:20:07 2022] 127.0.0.1:51893 Accepted
[Fri Jan 21 11:20:17 2022] 127.0.0.1:51893 Closing
[Fri Jan 21 11:20:58 2022] 127.0.0.1:51909 Accepted
[Fri Jan 21 11:21:08 2022] 127.0.0.1:51909 Closing
[Fri Jan 21 11:21:34 2022] 127.0.0.1:51916 Accepted
[Fri Jan 21 11:21:44 2022] 127.0.0.1:51916 Closing
[Fri Jan 21 11:25:29 2022] 127.0.0.1:51949 Accepted
[Fri Jan 21 11:25:39 2022] 127.0.0.1:51949 Closing
Editing the controller to remove the valid relationship foos makes the error page return immediately. The same happens on my actual app; if I attempt to load the invalid relationship alone, it errors out immediately. The timeout only occurs if another relationship is loaded first.
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.
In a controller method I was trying to load a relationship. I accidentally used snake case instead of camel case for a 2-word relationship, and Laravel immediately threw a
RelationNotFoundException
. However, the browser kept on spinning for another 60 seconds before PHP killed execution due to timeout.The timeout error doesn't happen in a consistent place, I saw a number of different code locations for it, none of which are in the Ignition codebase, but this only happens with Ignition enabled. If I uninstall Ignition, a "whoops" error is triggered immediately.
Using Laravel 8.79 and PHP 8.1. Tested with Ignition 0.0.9 and 1.0.1. Tried setting
enable_runnable_solutions => false
andsolution_providers => []
without any change.Code being run was a basic controller method:
Stack trace is as follows, please advise if there's any other detail I can provide.
The text was updated successfully, but these errors were encountered: