Better error handling + general cleanup #182
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: serg2-mirrors/GDBrowser#182
Loading…
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I stumbled across this and wanted to do some
springwinter cleaning :)Please let me know if there is anything else that could be done as cleanup and or if I have messed something up!
Additions:
Deletions:
Question:
Oh this is awesome!!! I appreciate the contribution a lot.
The site is still somewhat maintained but a lot of code is really messy since I started this project a long time ago.
My thoughts
That's fair; however, returning 200 on those things are more just there to clear up (considering the response is just usually integers) confusion of what is and isn't a success, and for method not allowed, it is nice just in case, I personally don't use express in a ton of my projects so I don't even know if they are or are not accessible but if someone does happen to make a request that isn't a post request (this goes for /messages too) then it will return an error code that is able to accurately describe the situation, it can be removed if you wanted but I just wanted to clear that up, at the end of the day it is your project!
And for private servers do you want the status code updated from 418 (I'm a teapot) or not? I will make a commit to remove the comments around that and clarify to anyone in the future with a new comment on what it does.
and the last thing, this is totally just a suggestion, if you do get a lot of people checking this out still it may be worthwhile to make an issue and pin it just to convert all the images in /assets to .webp to decrease loading times :)
bump
Will get to this eventually, just busy with other things
Alright hi again, so everything here looks good and I'm willing to merge this, though you'll have to revisit a few spots since there might be conflicts from the recent icon update. Thanks again for doing this!
Conflicts have been fixed!
Please don't merge the two icon code files
do you mean the two in the API Route?
the codeql security checks related to rate limiting can be ignored because in production a rate limit is enabled, its just not enabled by default (from what i can see, there is no
app.use(RL)
etc. by default, but it could be later on in the file after where all the otherapp.use(...)
things are), the cross site scripting ones are likely of concern thoughyou could either just ignore these security checks or implement ratelimiting by default by adding
app.use(RL)
orapp.use(RL2)
to get rid of the security warningsit is better to add ratelimiting by default, but colon can manually ignore the security warning on merge
this has nothing to do with the failed checks, that's on my end for being a bad programmer
but yeah just don't merge icon.js and icon_old.js, i split them up for a reason
ah ok my bad, didnt realise
is this what you were looking for in regards to icon.js and icon_old.js?
I've just reverted them prior to
84d02b7
, all other files from that commit are the same.as a summary:
84d02b7
84d02b7
ok what now i'm just confused.
please look at this recent commit, it's what i was referring to
I am as well, you asked me to not merge the icon and icon_old files
Tell you what just leave both icon and icon_old untouched, everyting else is cool and good
Aite I'm gonna merge now then properly clean things up in the next commit I'm about to push, ty for the help!