- 🇬🇧United Kingdom steven jones
Seems like this is the same as the error in 🐛 Export using date tokens is not working - cache metadata error Closed: cannot reproduce ?
If you can give the steps for reproducing, then we can take a look.
The bug I ran into looks an awful lot like #2887562-8: Filename not applied when downloading cached export. → however the patch from this previous issue has already been applied to 8.x-1.0-beta3 so I am opening a new issue.
Adding a token to the filename causes the following error to be thrown:
Uncaught PHP Exception 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\Core\Cache\CacheableResponse." at web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php line 154
Removing the token from the filename cases the data export to work as expected.
Closed: cannot reproduce
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Seems like this is the same as the error in 🐛 Export using date tokens is not working - cache metadata error Closed: cannot reproduce ?
If you can give the steps for reproducing, then we can take a look.