/tech/ - Tech


Mode: Reply

Max message length: 8192


Max file size: 80.00 MB

Max files: 5


(used to delete files and postings)


Remember to follow the rules

(67.90 KB 491x457 weaponized autism.png)
Fixing the Anchor Add On Comrade Root 01/12/2021 (Tue) 16:48:17 No. 6984
Hello Comrades, One big improvement for the site would be fixing the Anchor Add On to Lynxchan. When the add-on is activated, the site will temporarily crash whenever a thread is pinned. It caused repeated crashes the other week. The add on can be found here: https://pastebin.com/B8rRXtqr Whoever figures it out can elect to get the first payout of the patreon we're putting together for webdev if they're wiling to give their information or alternatively we can use bitcoin or something like that.
Do you have a stacktrace or something? I can't see anything obvious from the code.
By the site crashing you mean the 502 mongodb error?
>>6986 Or as in the server going down entirely?
I would move the cycle guard to the beginning though, line 17 would be: parameters.autoSage = !!parameters.autoSage && !parameters.cyclic; //added this and then remove it from line 37. But I doubt this is what is causing the issue.
>>6986 >>6987 Yeah it'd cause a 502 error >>6985 The last time it caused a crash, the error we received was for the postOps function.
>>6989 postOps is not a function. Do you mean postOps.setThreadsPage? What was the error?
>>6990 Yeah
>>6989 >The last time it caused a crash, the error we received was for the postOps function. So it causes multiple errors? Or just this specific one?
>>6992 I believe its just that one
Why patreon?
>>6994 Just one method of getting funding. We're also exploring a donate button or crypto.
>>6995 I'd prefer crypto to maintain my anonymity.
It would be nice if we could get at least an error message. This seems pretty hopeless without it.
>>6984 Tried setting line 59 to : postOps.setThreadsPage(thread.boardUri, function(error) { ?
>>6998 That could be what makes it crash and if it is, it exists upstream, independently from the autosage: https://gitgud.io/LynxChan/LynxChan/-/blob/master/src/be/engine/modOps/editOps.js#L146
>>6998 that's pretty stupid
So. Is this no longer relevant?


no cookies?