(Problem) Spurious 400 Bad Request errors when uploading

  • 25 Replies
  • 350 Views

0 Members and 1 Guest are viewing this topic.

Offline pauldelbrot

  • *
  • Fractal Flamingo
  • ****
  • Posts: 346
« on: January 01, 2018, 11:58:07 AM »
Another intermittent one: uploading images sometimes works, sometimes doesn't with a bogus 400 Bad Request error message. Just clicking upload again seems to fix it.

Offline Fraktalist

  • *
  • Administrator
  • *******
  • Strange Attractor
  • Posts: 769
« Reply #1 on: January 02, 2018, 02:44:26 PM »
strange - we'll be looking into these errors soon. thx for reporting!

Offline 3DickUlus

  • *
  • Fractal Frogurt
  • ******
  • Posts: 447
    • Digilantism
« Reply #2 on: January 03, 2018, 07:19:03 AM »
could be your DNS try google's 8.8.8.8 ???
Resistance is fertile... you will be illuminated!

https://en.wikibooks.org/wiki/Fractals/fragmentarium

Offline pauldelbrot

  • *
  • Fractal Flamingo
  • ****
  • Posts: 346
« Reply #3 on: February 13, 2018, 01:44:57 AM »
This bug, which had been fixed a couple of weeks ago, has somehow reappeared ... with a vengeance. It now has a 3 in 4 chance of happening, meaning, it will take 4 attempts on average to upload an image to the gallery. Obviously, that's not acceptable. Please find a permanent fix for this bug.

Offline 3DickUlus

  • *
  • Fractal Frogurt
  • ******
  • Posts: 447
    • Digilantism
« Reply #4 on: February 13, 2018, 04:06:09 AM »
I'm sorry you're having problems.

I have just uploaded 3 images to the gallery and have no problem, no 400, no errors.

The problems you are having don't seem to be in this site or it's servers so there isn't anything we can do on this end.

Change to google's DNS 8.8.8.8 and see if that helps, it won't cost you anything and it only takes a few seconds.

Offline pauldelbrot

  • *
  • Fractal Flamingo
  • ****
  • Posts: 346
« Reply #5 on: February 13, 2018, 04:50:52 AM »
Erm, "400 Bad Request" is a server response. And 400-series errors are not supposed to be intermittent or indeterministic. And the same exact request made four times in a row produced that error three times, and a different non-error response the fourth time. It follows from this collection of facts that the server is not functioning correctly according to the HTTP spec.

Offline claude

  • *
  • Fractal Frankfurter
  • *
  • Posts: 524
    • mathr.co.uk
« Reply #6 on: February 13, 2018, 04:57:29 AM »
Quote
the server is not functioning correctly
maybe "the" server is a server in between you and fractalforums.org, e.g. an ISP's transparent proxy.  or maybe a proxy is breaking things so that the request is broken by the time it reaches fractalforums.org
I wouldn't know how to debug this (is there an HTTP equivalent of traceroute?)


anyway httpS should prevent such MITM monkey-business, so I'm out of ideas....

Offline Anon

  • *
  • Fractal Fluff
  • *****
  • Posts: 354
« Reply #7 on: February 13, 2018, 05:19:03 AM »
I get "400 Bad Request" | Firefox Support Forum | Mozilla Support
"Bad request - request too long" | Firefox Support Forum | Mozilla Support

Corrupted cookies?
Clear browser cache?

Flush DNS cache?
ipconfig /flushdns
ipconfig /renew
ipconfig /registerdns

Offline 3DickUlus

  • *
  • Fractal Frogurt
  • ******
  • Posts: 447
    • Digilantism
« Reply #8 on: February 13, 2018, 05:45:47 AM »
 400 is a server response to a bad request, I don't know how to fix the request...

if the server was generating something incorrectly when an image was uploaded to the gallery then surely I would have seen the same thing when I uploaded 3 in a row, the server isn't going to randomly screw it up, it's either working or broken, and it appears to be working.

The folks at 1and1 hosting are professionals, I'm sure they maintain their setups and ensure that the servers are indeed up to HTTP spec, that's not our department, that's what they get paid for, sorry that's all I've got.

Offline Fraktalist

  • *
  • Administrator
  • *******
  • Strange Attractor
  • Posts: 769
« Reply #9 on: February 13, 2018, 10:46:29 AM »
No problems here either.
if anyone has the same problem, please post here.

If it's just Pauldelbrot we have to assume that it's on his side.

Offline pauldelbrot

  • *
  • Fractal Flamingo
  • ****
  • Posts: 346
« Reply #10 on: February 13, 2018, 03:54:14 PM »
The same exact request was sent (exact same contents of all form fields when I clicked "submit") four times. If it was a "bad request" then it was a bad request all four times, rather than exactly three of the four times.

If the server is responding to identical requests non-identically, that's a problem with the server.

If the four requests really weren't identical, when the user submits the same exact HTTP form with the same exact contents four times, then something is wonky with the submission form, which ... came from the FF server.

In either case the problem is at the FF server.

Or put more simply: The user didn't make any error, just filled in the form in a valid way and clicked the submit button, but the server claimed three times in a row that the user had made an error, before admitting on the fourth attempt that he really hadn't. If the user didn't make an error but something didn't work then the server made an error.

What do the logs show? There should be logs generated when errors like 400 and 404 get served. They might contain clues to the cause of the problem. Look for 400 error responses sent shortly before my post to this thread yesterday.

Offline Sockratease

  • *
  • *
  • Posts: 541
    • Sockratease.com
« Reply #11 on: February 13, 2018, 04:24:46 PM »
You are assuming only 2 parties involved with your postings.

There is the server here at FF, and the originating request from you.

But there are many servers between the two.

Your ISP has one, it has to get around the world to reach us here, and that can entail the signal being sent through many servers.

Your firm conclusion that if you do the same thing repeatedly and the error is not on your end, and therefore it must be our server, is short sighted.  It omits the many other servers between you and us.

We have no way of tracking this and you are the only one reporting it, so there is nothing more we can do from here.

Feel free to keep reporting it as often as it happens, but don't expect us to prioritize a problem which, on the surface, is only effecting a very tiny number of users and cannot be reproduced whenever we try.

We appreciate you reporting it, and we value your contributions here, but this issue is not one we are able to address and until it becomes reproducible for us (or until many users report it) it is a very low priority.  We have given it our best shot, and we can't figure it out.

The logs were checked by Frank, and no such error was found around the time you say this happened.  This proves it is not our server, or you, but one of the many other servers in between.  Have you tried the DNS solution suggested by 3Diculous?

Have you tried the solutions offered up by Anon?

Those are the next steps, and we cannot do them for you.

I hope one of them resolves your issues.
Study stupidity, kids. It's not getting smarter out there - Frank Zappa

Offline Anon

  • *
  • Fractal Fluff
  • *****
  • Posts: 354
« Reply #12 on: February 13, 2018, 05:15:01 PM »
trace packet route - Google Search

There is not one server handling one request.
The request is broken up into packets.
Each packet can travel through multiple servers.

You could try a trace route utility to help conceptualize this activity.
How to Use Traceroute to Identify Network Problems


Please correct me if this information is in error.



Offline weavers

  • *
  • Fractal Friend
  • **
  • Posts: 16
« Reply #13 on: February 13, 2018, 05:28:33 PM »
S o c k r a t e a s e Welcome back, your presence, your guidance, you  U R appreciated by the weavers!

Offline pauldelbrot

  • *
  • Fractal Flamingo
  • ****
  • Posts: 346
« Reply #14 on: February 13, 2018, 05:49:21 PM »
You are assuming only 2 parties involved with your postings.

There is the server here at FF, and the originating request from you.

But there are many servers between the two.

Which are supposed to be just dumb pipes.

And since I'm using http://httpS://fractalforums.org, this is enforced upon them.

The requests cannot be being altered in transit. The only intermittent errors that the middlemen could produce are timeouts and their ilk -- TCP errors, not application layer ones like HTTP 400.

Quote
The logs were checked by Frank, and no such error was found around the time you say this happened.  This proves it is not our server, or you, but one of the many other servers in between.

Impossible, due to HTTPS, unless your certificate has been compromised allowing someone to impersonate you cryptographically.

Absent such an unlikely instance of hacking, that 400 error must have come from your server, even if it (very oddly!) failed to log the occurrence.

Quote
Have you tried the DNS solution suggested by 3Diculous?

DNS cannot be relevant here. Again HTTPS is the reason why. Suppose that my ISP's DNS is (for some reason) resolving fractalforums.org to the wrong IP, say that of somesite.org instead. What do you think my browser would tell me if it went to http://httpS://fractalforums.org and got back something signed with somesite.org's certificate, which isn't valid for the fractalforums domain? (I can tell you this much: it wouldn't report a 400 Bad Request error.)


xx
Birdie Style

Started by gannjondal on Fractal Image Gallery

1 Replies
56 Views
Last post May 08, 2018, 02:39:37 PM
by who8mypnuts
xx
A little problem?

Started by Know That Fractal! on Fractal Image Gallery

2 Replies
204 Views
Last post December 25, 2017, 09:37:27 AM
by Fraktalist
clip
is this a lighting problem?

Started by cubsterky on Mandelbulb3d

3 Replies
142 Views
Last post March 09, 2018, 11:52:24 AM
by Bill Snowzell
xx
depth of field problem

Started by Tsarvek on Mandelbulb3d

0 Replies
27 Views
Last post May 05, 2018, 12:21:14 AM
by Tsarvek
clip
TheRedshiftRider 5, problem with zoom?

Started by julofi on Kalles Fraktaler

4 Replies
76 Views
Last post May 09, 2018, 01:32:16 PM
by Kalles Fraktaler