|
Hobbitus Moderatorus
S50, R1100s, way too many pushbikes
Joined: UTC
Posts: 11322 Location: Hermit Kingdom |
|
Hooked
Primrose: 1979 ET3; Roland: 1980 P200E; Scarlett: 1981 ET3
Joined: UTC
Posts: 322 Location: San Jose, CA |
UTC
quote
jess wrote: I've managed to bring some of the functionality up to modern standards, but there are still some notable bits that are stuck in the past (like this posting form that I am typing in right now, for instance). And the attachment / upload handler (also part of the posting form) is pathetically ancient. Hopefully I'll make some progress on those bits this year. Let me know if you could use a hand anywhere - I've spent quite a bit of time tinkering in PHP and JavaScript over the years, without being sucked into the "framework du jour" nonsense. One thought I had was live preview on the posting form, à la Stack Overflow. |
|
OP
|
UTC
quote
metadaddy wrote: Yeah - I noticed whichever page I was looking at was using XHR rather than fetch(). metadaddy wrote: Let me know if you could use a hand anywhere - I've spent quite a bit of time tinkering in PHP and JavaScript over the years, without being sucked into the "framework du jour" nonsense. I am trying to avoid endless frameworks as well. I dislike being at the mercy of someone else's distribution, and I distrust almost everything that I didn't write myself, even if what I write takes longer and is less generalized and has more bugs. For instance, using jQuery made sense 15 years ago, but I'm slowly trying to eradicate it now. I've replaced several complete jQuery plugins with native JavaScript already, and am working on a few more. metadaddy wrote: One thought I had was live preview on the posting form, à la Stack Overflow. For actual text editing, there are a couple of JS based libraries that I really like, and have the right mix of features I want (extensibility, for instance) but the one I like the most (EditorJS) has very murky ownership, possibly Russian. I just... yeah. |
|
Not So Moderator
VNB VSC VSX Li150 C125 - (o9c vmb vse)
Joined: UTC
Posts: 9943 Location: Hustletown, TX |
UTC
quote
Firefox (latest version). Single click submission.
Still getting this error message often:
|
|
OP
|
UTC
quote
Birdsnest wrote: Firefox (latest version). Single click submission. Still getting this error message often: |
|
OP
|
UTC
quote
Birdsnest wrote: Firefox (latest version). Single click submission. What I'm most interested in learning is the delta between alleged posts -- how much time elapsed between the supposed original post and the duplicate? Was it minutes? seconds? microseconds? I'm now calculating that and logging it. If the delta is microseconds, it's likely either a double-click or some kind of browser weirdity that is double-submitting the post. In that case, the prudent answer might just be to ignore the second post and take the user straight to the first post (if I can figure out what the first post is in that context -- not sure I can). If the delta is seconds or minutes, that's a different problem altogether. So now we wait for it to happen again. (Please feel free to post here if and when it does). |
|
Not So Moderator
VNB VSC VSX Li150 C125 - (o9c vmb vse)
Joined: UTC
Posts: 9943 Location: Hustletown, TX |
UTC
quote
Microseconds.
Will holler next time it happens just in case there is any data that helps ya.
Positive
|
|
UTC
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
|
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
UTC
quote
Posting a comment with a pic. Time was normal pic upload duration then failed. Repeat failed. Cut a few pixels and success
|
|
OP
|
UTC
quote
SteelBytes wrote: Posting a comment with a pic. Time was normal pic upload duration then failed. Repeat failed. Cut a few pixels and success In my testing, the only way I can reliably replicate this condition is by doing a reload of the page after transitioning from a GET of the posting page to a POST of the posting page. By that, I mean after doing a preview of the post or pressing the "Add Attachment" button -- both of which will refresh the initial posting page (via a POST request) and remove the query arguments from the site address -- the difference between the two pictures I've shown below. After doing a Preview or Add Attachment, the query parameters are moved from the GET query string to hidden POST variables. If you hit "Reload" on the page at this point, you're asking the server to load the posting page without telling it what mode you want to be in (new topic, reply, quote, edit, etc) and thus you get the message you are seeing. The posting page has been like that forever -- dating back to the original phpBB code. And the problem has been happening ever since then, though for some people a lot more than others. I don't have any idea why the difference, though. For the record, I don't actually think people are hitting "Reload" on the page deliberately when this occurs. Rather, it's my guess that something is causing the page to be reloaded unintentionally. But I honestly don't know what that trigger is. I don't think it's actually anything to do with the image, but I'm willing to be wrong about that. If you can figure out a way to reliably reproduce the problem (without hitting "reload", that is) then I would be genuinely appreciative. As it is, I'm a bit stumped. All of this might be a moot point, though -- I am in the process of completely rewriting the posting page, and resilience to reload is the very first thing on my design requirements. In fact, I'd like to be able to leave a post in progress and return to it later (at least within the span of that session, anyway) without any loss.
|
|
UTC
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
|
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
OP
|
UTC
quote
SteelBytes wrote: I think it's simply big pics. |
|
UTC
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
|
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
UTC
quote
jess wrote: Can you send a pic that reproduces the issue to support@modernvespa.com?
Positive
|
|
Molto Verboso
'07 GTS250, '07 LX150, '81 P200E, '78 P200E, '74 VBC1, '64 V90 and 3 Ciaos
Joined: UTC
Posts: 1864 Location: Tucson, AZ |
UTC
quote
I'm wondering if the "Reply" icon on the Home page broke for NSM? It's staying displayed even though I'm caught up on threads there.
Checked in on my phone (Android 15 w/Chrome) and PC (Win 11 w/Edge) and I get the same behavior. I noticed it after MJRally replied to the Bollox thread ⚠️ Last edited by az_slynch on UTC; edited 1 time
|
|
OP
|
UTC
quote
az_slynch wrote: I'm wondering if the "New" or "Reply" icon on the Home page broke? It's staying displayed even though I'm caught up on threads there. Checked in on my phone (Android 15 w/Chrome) and PC (Win 11 w/Edge) and I get the same behavior. |
|
Molto Verboso
'07 GTS250, '07 LX150, '81 P200E, '78 P200E, '74 VBC1, '64 V90 and 3 Ciaos
Joined: UTC
Posts: 1864 Location: Tucson, AZ |
|
OP
|
UTC
quote
az_slynch wrote: Sorry, amended to add better details. |
|
Molto Verboso
'07 GTS250, '07 LX150, '81 P200E, '78 P200E, '74 VBC1, '64 V90 and 3 Ciaos
Joined: UTC
Posts: 1864 Location: Tucson, AZ |
UTC
quote
jess wrote: Have you tried hitting the "Mark All Read" button? Could be something on a later page. I'll remember that trick next time.
Positive
|
|
OP
|
UTC
quote
az_slynch wrote: That cleared it. Thanks! I'll remember that trick next time. |
|
UTC
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
|
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
OP
|
|
UTC
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
|
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
|
UTC
quote
Got a 502 error when I tried to flag a post as spam (when sending the message). Occurred once with several spam reports.
Positive
|
|
|
UTC
quote
Is there a way to block a user as long as an active spam report is unprocessed, so that this user cannot post any more?
I'm asking because several spam posts are currently being posted by the same user.
Positive
|
|
OP
|
UTC
quote
GermanGTSDriver wrote: Is there a way to block a user as long as an active spam report is unprocessed, so that this user cannot post any more? I'm asking because several spam posts are currently being posted by the same user. |
|
OP
|
UTC
quote
GermanGTSDriver wrote: Got a 502 error when I tried to flag a post as spam (when sending the message). Occurred once with several spam reports. |
|
OP
|
UTC
quote
GermanGTSDriver wrote: Got a 502 error when I tried to flag a post as spam (when sending the message). Occurred once with several spam reports. |
|
|
UTC
quote
jess wrote: Did you post this very close to the time it happened? I am trying to track down the specific log message, but they are organized in very small groups by time & date.
Positive
|
|
|
UTC
quote
jess wrote: It's possible, but it is also the kind of thing that could be easily abused. The whole report system is likely to be replaced in the near future, though, so I could consider this as a part of that overhaul.
Positive
|
|
OP
|
UTC
quote
GermanGTSDriver wrote: Well, there are several indications that combined almost rule out abuse: New accounts, with no or few posts so far, which start many new topics in a short time or post in short frequencies (in which NO defined keyword or certain keywords appear) and then receive one or more spam reports (possibly from two or more users). |
|
OP
|
UTC
quote
GermanGTSDriver wrote: Yes. Screenshot is taken 12:57 German Time (4 Minutes before Post). The error occurred in one of the first spam reports I submitted. |
|
|
UTC
quote
jess wrote: You are currently UTC+1, yes? Not yet Mitteleuropäische Sommerzeit?
Positive
|
|
OP
|
UTC
quote
GermanGTSDriver wrote: Yes, sir! UTC+1, Summertime (UTC+2) is starting end of March. It's a 502 error, yes -- but the log didn't reveal anything insightful, unfortunately. I've been trolling the interwebs on and off looking for information about intermittent CloudFront 502 errors, but virtually every documented CloudFront 502 error is due to server configuration errors that prevent any requests from getting through, not just occasional ones. So I am still stuck. Thanks for the info, though, it was helpful to track down the log. |
|
OP
|
UTC
quote
SteelBytes wrote: 502 still happening. GermanGTSDriver wrote: Got a 502 error when I tried to flag a post as spam (when sending the message). Occurred once with several spam reports. (I say allegedly because I don't actually have any specific keep-alive directives set for Apache, and afaik there isn't a way to ask Apache directly what it is set to -- but it is definitely on, as various empirical tests have confirmed). So, assuming both the CloudFront proxy and Apache are using a keep-alive of 5 seconds, then the coders reading this might be recognizing a race condition right about now. My working hypothesis is that if CloudFront and Apache don't agree on exactly when the 5 second timeout starts and ends, then there is a potential case where Apache's 5 seconds might end just before CloudFront's 5 seconds are up, meaning CloudFront is at that point holding a stale connection to the server. And if a request came in just at that moment, and CloudFront found itself with a stale connection, it is plausible that it would get no response from the server and thus respond to the client with a 502 error. So, what to do? Rather than increase the keep-alive timeout (on either party) I have opted to lower CloudFront's keep-alive timeout to 4 seconds, and leave Apache's at its (alleged) default of 5 seconds. This should create a bit of margin where CloudFront will negotiate a new connection to the server slightly before Apache has given up on the old connection, which should be perfectly cromulent. Will this work? I have no idea. I am relying on you two (and anyone else reading this who is adversely affected) to report further 502 errors to me. Thanks for both of your help so far.
Positive
|
|
|
|
OP
|
UTC
quote
GermanGTSDriver wrote: No pic or placeholder? Not sure if that was an intentionally blank image upload or if something went wrong. |
|
OP
|
UTC
quote
GermanGTSDriver wrote: No pic or placeholder? |
|
UTC
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
|
Veni, Vidi, Posti
2019 GTS SuperTech 300 HPE w Malossi kit
Joined: UTC
Posts: 8128 Location: Batmania aka Melbourne, Aus |
|
|
UTC
quote
MV often makes it clear that NSR topics are welcome in general discussion. But I noticed the description indicates otherwise:
Positive
|
|
OP
|
UTC
quote
berto wrote: MV often makes it clear that NSR topics are welcome in general discussion. But I noticed the description indicates otherwise: |
|
Hooked
Primrose: 1979 ET3; Roland: 1980 P200E; Scarlett: 1981 ET3
Joined: UTC
Posts: 322 Location: San Jose, CA |
UTC
quote
Getting this when I try to reply to the "What are you listening to thread" in NSM, as I start typing. About 1 or 2 minutes ago.
|
Modern Vespa is the premier site for modern Vespa and Piaggio scooters. Vespa GTS300, GTS250, GTV, GT200, LX150, LXS, ET4, ET2, MP3, Fuoco, Elettrica and more.
