16

When answering a question and you get the error:

Oops! Your answer couldn't be submitted because:

Your post appears to contain code that is not properly formatted as code. Please indent all code by 4 spaces using the code toolbar button or the CTRL+K keyboard shortcut. For more editing help, click the [?] toolbar icon.

If you are on the mobile site when you got the above error and switch to full site while the error is being displayed you get Stack Overflow's 404 page error.

Is this error common? Are Stack Overflow developers aware of this?

1 Answer 1

3

The mobile page doesn't do asynchronous validation; you get the error when you submit via /questions/ask/submit. This page only works when the question form is submitted along with the request (it's a POST request, not a GET request), and switching to/from mobile doesn't preserve that data - it just tries to redirect to the URL you were viewing.

You'll see the same error if, upon receiving a submission error, you simply reload the page (without re-submitting the data).

Efforts to make the normal /question/ask page responsive (== usable on mobile devices) are ongoing; once done, we should no longer need two separate ask pages, and everyone should get nice asynchronous errors.

screenshot of responsive Gardening & Landscaping ask form

1
  • 1
    Had me at everyone should get nice asynchronous errors :))
    – Bobby Axe
    Commented Oct 9, 2018 at 16:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .