Title: POST request handled as GET in nextjs route handlers · Issue #13908 · getsentry/sentry-javascript · GitHub
Open Graph Title: POST request handled as GET in nextjs route handlers · Issue #13908 · getsentry/sentry-javascript
X Title: POST request handled as GET in nextjs route handlers · Issue #13908 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/13908
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"POST request handled as GET in nextjs route handlers","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n8.33.1\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\nhttps://dev-curumas.sentry.io/issues/5968125190/?project=5591101&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&statsPeriod=7d&stream_index=0\n\n### Reproduction Example/SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\nRepro: [next-test-sentry-main.zip](https://github.com/user-attachments/files/17292326/next-test-sentry-main.zip)\nFollow the steps in the readme:\n1. npm install\n2. update DSN in the sentry config files\n3. npm run dev\n4. send a POST request to http://localhost:3000/api/test\n\n\n### Expected Result\n\nThe event in sentry has the POST request information including body. \n\n### Actual Result\n\nThe request in the Sentry event is treated as a GET request, even though the event is associated with the transaction `POST /api/test` (http.server)\n\n\n","author":{"url":"https://github.com/rodolfoBee","@type":"Person","name":"rodolfoBee"},"datePublished":"2024-10-08T11:17:13Z","url":"https://github.com/getsentry/sentry-javascript/issues/13908"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:76133368-9175-409b-6686-fb1d0b2cd6f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E71C:9136E:4DF110:6AEF19:6B04557C |
| html-safe-nonce | fa5e7eca8125f46347ba7ac5ef95d1657c5e01a9410db31fe02d5621d93dae7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzFDOjkxMzZFOjRERjExMDo2QUVGMTk6NkIwNDU1N0MiLCJ2aXNpdG9yX2lkIjoiMjA4OTU4NTk4MzExMTg0NTI0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a7b8fd52defd88197dce3bc71fa12ecbdbed27b803cc2a5a15ad3063ea3613e3 |
| hovercard-subject-tag | issue:2572892823 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/13908/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3634040659ef0ba9a27e74b66a9dd6ad16f6bc16fa348620745ef33b7f0aff81/getsentry/sentry-javascript/issues/13908 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3634040659ef0ba9a27e74b66a9dd6ad16f6bc16fa348620745ef33b7f0aff81/getsentry/sentry-javascript/issues/13908 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rodolfoBee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width