-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Errored API routes trigger "API resolved without sending a response" 7.32.1
#6916
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
Comments
@lforst could you take a look when you get some time? |
@bsplosion We didn't change anything in that logic so I wonder what might cause this.
|
next.config.js:
|
Thanks! Is there weird build output? |
Not that I've seen - just ran another build and it cleared without any issues or messaging that had anything to do with Sentry. Worth noting, I'm not actually suppressing those logs with the |
@bsplosion are you sure this worked on version 7.31.1? |
@bsplosion Also can you maybe share the file of the route this is happening on? Thanks! |
@lforst I just checked again and it's still not having that logging issue under 7.31.1, though maybe something else is broken on that version which causes it to also not log? Regarding the route it triggers on, it's every API route, down to the most basic. We have some proprietary API request wrappers in place that I don't believe are necessarily impacting this, but here's a basic stripped example in case anything leaps out:
There are several imports that I don't have defined on this snippet, like |
@bsplosion Hmm there could be something triggering this on your end depending on what |
@lforst It's going to be a rabbit hole - that function has a bunch of other provider services that are hooked, which in turn do some other stuff that could potentially affect it. Are you saying that you're seeing the extra logging on |
After thinking about this some more, I think this is related to #6919. Can you try upgrading to version 7.33.0? |
This isn't just on error api. I have the simplest possible handler in export default ((req, res) => {
res.send('Data')
}) satisfies NextApiHandler And I still get this issue. I'm on @sentry/nextjs 7.34.0 |
@tonyxiao I cannot reproduce it. Do you happen to be calling that handler from some other place? Are you wrapping your routes manually with |
Not wrapping manually, only using the next.config.js plugin of sentry. Didn't check vercel, only saw happening locally I had to add the |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Confirmed this is still an open issue |
Hey @iwasrobbed could you open a new issue with details about your package versions (nextjs, webpack), a copy of your next config or a reproducable example, and details about your deployment (vercel, aws, etc.)? Going to close this so we can focus on solving your issue in another thread! |
I didn't see anything in the diff which would indicate the breaking change, but the constant logging has definitely returned. Downgrading to
7.31.1
resolves again.Originally posted by @bsplosion in #3852 (comment)
The text was updated successfully, but these errors were encountered: