next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

{"message":"The provided secret has expired."}

Open guillaume-hb opened this issue 2 years ago • 3 comments

When we got on View on a drupal content to get the preview, sometimes it works but take a long time, and few times after, I've got this error :

{"message":"The provided secret has expired."}

It seems that the token is not refreshed well from the nextjs side

guillaume-hb avatar May 02 '23 12:05 guillaume-hb

Yes. Right now, a new token is created when you visit the View page. It does not refresh automatically. You have to refresh the page to get a new token.

You could work around this by setting a larger expiration time for preview secrets.

shadcn avatar May 04 '23 06:05 shadcn

Thanks for your answer, but on a AWS EC2 instance, it makes it crash, so the token could not be refresh. It looks like it takes too much time so get a response, so it crashes

Any idea to fix this bug ?

Thanks

guillaume-hb avatar May 04 '23 07:05 guillaume-hb

I think this issue is a duplicate of #422.

balintbrews avatar Jun 04 '24 13:06 balintbrews