- Issue created by @nataliajustice
- Status changed to Closed: outdated
about 1 year ago 5:35pm 22 September 2023 - πΊπΈUnited States glynster
This was fixed in the last release and we forgot to close this.
When posting to following endpoint /rest/create-account?_format=json, following error is thrown:
LogicException: 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\rest\ResourceResponse. in Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (line 154 of /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php).
Make a POST request with "mail" and "pass" to the following endpoint: /rest/create-account?_format=json
Because it is a POST request we need to use ModifiedResourceResponse instead of ResourceResponse
Closed: outdated
2.1
Code
This was fixed in the last release and we forgot to close this.