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

Server Actions Error Logging #1529

Open
sam-baumann opened this issue Aug 19, 2024 · 0 comments
Open

Server Actions Error Logging #1529

sam-baumann opened this issue Aug 19, 2024 · 0 comments

Comments

@sam-baumann
Copy link

Describe the bug

I'm running a next.js hybrid app on SWA, and I am having an error within a server action I am using - but I'm unable to see the error trace anywhere in app insights? Is this a bug, am I looking in the wrong place, or is it just unsupported? If unsupported I think that would be good to add to the documentation at this page https://learn.microsoft.com/en-us/azure/static-web-apps/deploy-nextjs-hybrid.

To Reproduce
Steps to reproduce the behavior:

  1. Create a hybrid next.js project
  2. Create a server action using 'use server' that throws an error
  3. Call that server action in a client component
  4. Check 'failures' in app insights - there is no event or trace to help find the error.

Expected behavior
Error logs should show in app insights

Screenshots

Device info (if applicable):

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant