Skip to content
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

Getting error while previewing the content #162

Open
joshirohit100 opened this issue Nov 15, 2022 · 1 comment
Open

Getting error while previewing the content #162

joshirohit100 opened this issue Nov 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@joshirohit100
Copy link
Contributor

Steps -

  • Setup ACMS headless V2 site using https://github.com/acquia/drupal-recommended-project template
  • Use the demo content while setup
  • Not setup NextJS site while headless V2 setup
  • Once site is installed, manually enable nextJS
  • Setup nextJS site using the acquia nextjs starterkit
  • Once setup is done, verify nextjs site is opening fine
  • Then edit an article content and add a new revision in draft state and check the preview of the content
  • Notice the error in preview
  • Also notice error now on NextJS site as well (seems something is cached)

Screenshot 2022-11-11 at 2 19 42 PM

@joshirohit100 joshirohit100 added the bug Something isn't working label Nov 15, 2022
@joshirohit100
Copy link
Contributor Author

This seems happening because of some change in consumer module. And because of that clientID is not set for headless consumer.

To fix this, edit the headless consumer and add the client id manually or generate that. Then copy this client id from drupal and update in .local.env in nextjs app as currently we are using UUID of consumer and not the client id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant