-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@clerk/nextjs
encryption error on next@15
after upgrading to version 6.10.1
#4989
Comments
Notes:
|
Hey @Gavin-Hofer, thanks for opening an issue. I followed your steps and make sure that i was not using the I tried with other versions of Also you are mentioning server actions here, but there are none in the reproduction you provided. |
Thanks for looking into this @panteliselef. I just pushed an update to add a page to test calling a server action from the client under the |
So I found I am still able to reproduce if I switch back to my previous commit (without the Also, I get the same behavior even in a fresh private browsing session. I'll see if I can replicate it in a docker container. |
Update I managed to replicate the issue with server actions on my side, and added a new page It was pretty particular about whether the error would show up, for example the error wouldn't show up if I had any client components anywhere in the app or if I had any static pages. These were different conditions than I originally saw so I think it's just super finicky (when I originally observed the issue, it was calling the server action from a client component, which I couldn't replicate here). To rule out it being something specific to building on my machine I set up a github actions pipeline to build a multiplatform image for both # Arm64 version
docker run -p 3000:3000 --env-file .env.local gavinhofer302/clerk-server-action-encryption-error:latest
# Amd64 version (emulated)
docker run -p 3000:3000 --env-file .env.local --platform linux/amd64 gavinhofer302/clerk-server-action-encryption-error:latest Here's a link to the build log: https://github.com/Gavin-Hofer/clerk-server-action-encryption-error/actions/runs/12968289689 |
Hello @Gavin-Hofer, we were able to reproduce, and we are working on a fix. |
I am also seeing this issue on It might be an |
Preliminary Checks
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
https://github.com/Gavin-Hofer/clerk-server-action-encryption-error
Publishable key
pk_test_YnVyc3RpbmctdGljay05Ni5jbGVyay5hY2NvdW50cy5kZXYk
Description
Description of Error
After upgrading
@clerk/nextjs
from version 6.9.15 to 6.10.1, server actions started failing onawait currentUser()
with the following error:Implementation-specific Details
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
, I have an environment variable calledCLERK_PUBLISHABLE_KEY
that I pass to<ClerkProvider>
andclerkMiddleware
at runtime (this is so I can use the same docker image with both test and live keys).Replication Instructions
.env.local
. Note: the publishable key should be calledCLERK_PUBLISHABLE_KEY
notNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
.CLERK_ENCRYPTION_KEY
and add it to.env.local
:Expected Error
When I attempt to load the page I get an error in the server component render. It errors out on the line:
With the following error message (on the server):
This happens whether or not you are logged in.
Environment
The text was updated successfully, but these errors were encountered: