We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 805d48e commit 499ce65Copy full SHA for 499ce65
apps/web/lib/axiom/server.ts
@@ -44,7 +44,12 @@ export const withAxiomBodyLog = createAxiomRouteHandler(logger, {
44
45
// Add body to report if the method is POST, PATCH, or PUT
46
if (["POST", "PATCH", "PUT"].includes(data.req.method)) {
47
- report.body = await data.req.json();
+ try {
48
+ report.body = await data.req.json();
49
+ } catch (error) {
50
+ // Body might be empty, invalid JSON
51
+ // Silently skip adding body to report
52
+ }
53
}
54
55
// Add search params to report
0 commit comments