question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run npx create-keycloak-email-directory for keycloak version 16.1.1 - [object Object] instead of required action name on email

See original GitHub issue

Hello,

First of all, thanks for your work, it really helped me to quickly and easily customize the login page 😃

To give some context: I needed to slightly change the theme of the login and email Keycloak pages for my app, so I forked the demo app and followed the documentation’s instruction. I adapted the css and now the pages looks exactly as I wanted, the problem is not there.

The keycloak I’m using is in 16.1.1 version. When I try to run npx create-keycloak-email-directory for this keycloak version, I get the following error:

Capture d’écran 2022-07-11 à 17 14 27

The error is happening for every version between 15.0.1 and 16.1.1 included. I tried to delete the node_modules folder and do yarn install again, but it doesn’t change anything. I’m using yarn v 1.22.19. I also tried to upgrade the Keycloakify version in the package.json to its latest release (5.7.0) but nothing changed.

If I run the command for an higher Keycloak version (between 17 and latest) or for Keycloak v 11.0.3, I don’t have the error and the folder is created but there is a problem in the email template, it is written [object Object] instead of the required action name. (cf screenshot, here with a “verify_email”, but it does the same for all other required actions).
This part is the real issue.

Capture d’écran 2022-07-11 à 16 48 46

Maybe the arguments changed between version ? I couldn’t find the information over the net nor a way to fix that. If I remove the theme from the admin console, the text is the good one, it only happens when I apply the custom theme.

Do you think that the “[object Object] error” really come from a wrong Keycloak version chosen when running npx create-keycloak-email-directory or from something else ? Did anyone already encounter/solve this issue ?

I hope this is not too confuse, I can give you more details if needed, Thank you for your time and your help,

Ps: Sorry for the long title, I didn’t manage to make one better than that to resume the issue.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
clementinedebcommented, Jul 12, 2022

Ok, no problem, I’m opening a new issue with all needed informations 😃

0reactions
garronejcommented, Jul 12, 2022

Oh 😦

Yes please open an other issue.
I tried to find this but I didn’t:
image What is it exactly?
The mail as you see it in your inbox? A webpage that you see when you click on a link in the email?

Try giving me as much info so i can reproduce, thx

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keycloak Instance not created using keycloak-js
I have solved in my project react-typescript with this import Keycloak, { KeycloakConfig } from "keycloak-js"; const initOptions: ...
Read more >
How to restrict registration to specific email domains? - Keycloak
Hello, I would like to restrict the registration process only to specific email domains. Eg, only accept registration from *@adomain.com or ...
Read more >
Login fails with 404 · Issue #57 - GitHub
Write a script that logs into a Keycloak instance; Append a / to the provided baseUrl; Run the script again, observe a 404...
Read more >
[KEYCLOAK-2929] Email verification is always ... - Red Hat
Authentication -> Required Actions -> Verify email. Yet it still tries to send the user an email and thus the user is unable...
Read more >
Execute-actions-email API not working : r/KeyCloak - Reddit
Hi I'm getting error 500 when trying to use the “execute-actions-email” Admin API endpoint. I'm developing on a local machine version 16.1 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found