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
My code expects a Paginator object and loops through the result. So, whenever it doesn't get a Paginator, users experience a "whoops something went wrong" page and the error log shows a ErrorException: Trying to get property of non-object type error. In every report of the error page, refreshing the page immediately "fixes" the problem. Meaning, in other words, that the exact same query on the exact same data a few seconds later returns the expected response.
There's nothing in my code to switch between these types of responses. The same code querying the same tables with the same underlying data seems to randomly (and rarely) return a different type of response.
I've searched the reported issues here already and didn't see anything similar so I'm reporting this in the hopes that folks more experienced with Dingo can identify what the underlying issue is.
Thanks! :)
The text was updated successfully, but these errors were encountered:
I am making internal requests to Dingo and experiencing inconsistent results. "Example-fied" code:
This endpoint is setup to return a paginated collection of objects. "Example-fied" code:
In the vast majority of cases, I get the response I expect which is a Paginator Object:
However, on some rare cases, what is returned instead is a Response Object wrapper around the Paginator Object:
My code expects a Paginator object and loops through the result. So, whenever it doesn't get a Paginator, users experience a "whoops something went wrong" page and the error log shows a
ErrorException: Trying to get property of non-object
type error. In every report of the error page, refreshing the page immediately "fixes" the problem. Meaning, in other words, that the exact same query on the exact same data a few seconds later returns the expected response.There's nothing in my code to switch between these types of responses. The same code querying the same tables with the same underlying data seems to randomly (and rarely) return a different type of response.
I've searched the reported issues here already and didn't see anything similar so I'm reporting this in the hopes that folks more experienced with Dingo can identify what the underlying issue is.
Thanks! :)
The text was updated successfully, but these errors were encountered: