Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-12892

Gateway timeout results in ‘An error occurred: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON’ alert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None

      Trying to add the Apple Digital Masters series to a release will sometimes result in a 504 gateway timeout (I assume due to how large that series is). In the stable release, this would result in the ‘Sleepy Server’ thing, but on the beta release an alert saying ‘An error occurred: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON’.

      I believe this is because the server returns this HTML response

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
        <head>
          <title>504 Gateway Timeout</title>
          <link rel="stylesheet" href="/.proxy/httperror.css" type="text/css" />
        </head>
        <body>
          <div id="bg">
            <img src="/.proxy/MusicBrainzLogo-Z.png" />
          </div>
          <h1>Sleepy Server</h1>
          <p>One of our servers appears not to be responding quickly enough.&nbsp; Please try again later.</p>
          <p id="http">504 Gateway Timeout</p>
        </body>
      </html>
      

            Unassigned Unassigned
            cherryblossom000 cherryblossom000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Version Package