Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The API is returning the following error message when I request the revision history for locked posts.

Example URL:

  "error": {
    "code": 500,
    "message": "A generic error has occurred on the server; developers have been notified."

I've tried this through the API Console, directly in my browser, and in code (with and without an API key).

Here's a sample from some of the top posts on Stack Overflow.


Not locked:

All of the locked questions give the error message above, while all of the questions that are not locked return a normal revision history. Other question states like closed and protected seem to have no effect.

Finally, I did one last test. I was able to successfully fetch the revision history of Twitter image encoding challenge [closed] before it was locked (note that is was protected and closed prior to testing) but after it was locked I got the same error message.

share|improve this question
Just found this unanswered question via casual browsing, and wonder why it is not answered. I presume 1.1 is fully deprecated now - does the issue still exist in 2.x versions? – halfer Sep 2 '15 at 16:14
@halfer It looks like it's fixed in the latest version. Deleted post ids return an empty list of items, but locked posts return a list of revisions.… (I'll flag for a moderator to mark this completed.) – Bill the Lizard Sep 2 '15 at 17:11
Great, thanks Bill. – halfer Sep 2 '15 at 17:14

You must log in to answer this question.

Browse other questions tagged .