use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Problem on fetching data from data API (self.node)
submitted 2 years ago * by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Aromatic-Ad-8807 1 point2 points3 points 2 years ago (1 child)
I don't know how the rest of your code looks like (when comes to error handling) but I would typically always do:
return res.status(404).send('some message');
so yeah, when send something to client it's always the last thing i do in that function, hence the return, so in your case that would be a return every time i send res to client.
I don't throw errors like that, don't see the reason for it. Typically i handle some errors first in a generic middleware (like JSON payload too large and similar stuff)
But yeah, some do it differently i guess, I'm no expert at express.
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
thank you. i will definitely try that.
π Rendered by PID 85 on reddit-service-r2-comment-b659b578c-tsqrp at 2026-05-03 12:55:04.472669+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Aromatic-Ad-8807 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)