API returns Internal Server Error when requested by anonymous user.

Created on 23 May 2023, about 1 year ago
Updated 17 August 2023, 11 months ago

When requesting menu item using
{baseurl}/api/menu_items/{menuname}
I am getting the following error:

"title": "Internal Server Error",
"status": "500",
"detail": "The controller result claims to be providing relevant cache metadata, but leaked metadata was detected. Please ensure you are not rendering content too early. Returned object class: Drupal\\jsonapi\\CacheableResourceResponse.",

This is only happening if I dont pass user token in the header...

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇮🇳India farhanmae Bengaluru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024