502 Bad Gateway when calling getRelated in frontend #2454
Replies: 5 comments
-
The 502 error is coming from your web server, but there must be an underlying error in your Laravel application for it to happen. Check your Laravel logs. |
Beta Was this translation helpful? Give feedback.
-
No error in log
|
Beta Was this translation helpful? Give feedback.
-
What about your web server/php-fpm logs? |
Beta Was this translation helpful? Give feedback.
-
Couldn't find any error. |
Beta Was this translation helpful? Give feedback.
-
Are you still reproducing this issue? |
Beta Was this translation helpful? Give feedback.
-
Description
I get 502 Bad Gateway when calling
getRelated()
in a controller or blade on frontend. If I call it in a repeater blade (for dynamic select options) it works with no errors.Controller, blade view (502 Bad Gateway)
If I uncomment the
dd()
,@dd()
(also in the foreach loop) above it works & returns a collection of the related models or single model within the foreach:Sample in repeater blade view (works)
Versions
Twill version: 2.12.4
Laravel version: 9.48.0
PHP version: 8.0
Beta Was this translation helpful? Give feedback.
All reactions