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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: 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>
      

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

              Created:
              Updated:

                Version Package