Open jean-louis opened 1 year ago
I'll take a look at this. This only happens when using the Authorization Code Grant?
Any update on this issue? I get this error when visiting my Next.js site after enabling the Rules module in Drupal. I'm using Next-Drupal 1.6.0.
Location:http://my.lndo.site/en/jsonapi/menu_items/main
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\jsonapi\CacheableResourceResponse. in Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (line 154 of /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php).
Edit: I see that the fix from https://github.com/chapter-three/next-drupal/pull/473 has already been applied to the module I'm using, so it's caused by some other related issue. Any ideas?
Hi all, sorry for my bad english.
I use drupal as Identity for a frontend in next.js with the "Authorization Code Grant". After upgrading core and various contrib modules i have the following exception at login:
there are many issues on drupal.org that talk about it and the most interesting is the following #2638686: Exception in EarlyRenderingControllerWrapperSubscriber is a DX nightmare, remove it
these are versions of a selection of installed modules:
After some "debugging" I noticed that the problem doesn't arise using version 1.4.0 of the next module, but looking at the changes made from version 1.4.0 to 1.6.2 I can't figure out what could cause this problem.
The only way I found to make the login process work with the versions listed above, was to apply the patch (attached to 3334339) to the simple_oauth Oauth2AuthorizeController::redirectToCallback method, but I'm wondering if these changes can lead to other types of problems.
Any suggestions on the possible cause or on the created patch are welcome, thank you
P.S. Do you have this error?