Azure / Azure/static-web-apps

Server Actions Error Logging

Open
#1,529 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**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**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.