Over capacity errors, page not found, and other errors when adding members to a list via the api


#1

I’m trying to add a number of users to a private list, usually 200-600 per list, in batches of between 40 and 80. It seems that this sometimes works, but it throws a LOT of different kinds of errors. Sometimes it’s over capacity, sometimes it’s page not found, and sometimes the error returned below. This call seems to fail frequently. Other calls (creating lists, getting the list members, etc…) seem to be working fine, it’s just adding members to the list. I’m using the twitter ruby gem, and this operation corresponds to lists/members/create_all. Backing off and trying again later doesn’t seem to improve things. The API says this operation isn’t rate limited, and the numbers here should be within the user limits as I understand them. Am I doing something wrong?

error 757: unexpected token at '<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Language" content="en-us">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Twitter / Error</title>
    <link href="//abs.twimg.com/favicons/favicon.ico" rel="shortcut icon" type="image/x-icon">
    <link rel="stylesheet" href="//abs.twimg.com/errors/fullscreen_errors.css">
  </head>
  <body>
    <div class="topbar js-topbar">
      <div class="global-nav" data-section-term="top_nav">
        <div class="global-nav-inner">
          <div class="container">
            <ul class="nav js-global-actions">
              <li class="home">
                <a class="nav-logo-link" href="//twitter.com">
                  <i class="bird-topbar-blue"></i>
                </a>
              </li>
            </ul>
            <div class="pull-right">
              <ul class="nav secondary-nav">
                <li><a href="//twitter.com" id="homeLink">Home &rarr;</a></li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="blue-sky">
      <div class="body-content">

          <div class="canvas">
            <img class= "illustration robot" src= "//abs.twimg.com/errors/robot.png" >
          </div>
          <h1>Something is technically wrong.</h1>
          <p>Thanks for noticing&mdash;we're going to fix it up and have things back to normal soon.</p>

        <div class="footer">
          <ul class="languages">

              <li><a data-language="ar" href="#">العربية</a></li>

              <li><a data-language="be" href="#">беларуская</a></li>

              <li><a data-language="ca" href="#">català</a></li>

              <li><a data-language="cs" href="#">Čeština</a></li>

              <li><a data-language="da" href="#">Dansk</a></li>

              <li><a data-language="de" href="#">Deutsch</a></li>

              <li><a data-language="el" href="#">Ελληνικά</a></li>

              <li><a data-language="en" href="#">English</a></li>

              <li><a data-language="en-gb" href="#">English (UK)</a></li>

              <li><a data-language="es" href="#">Español</a></li>

              <li><a data-language="eu" href="#">Euskara</a></li>

              <li><a data-language="fa" href="#">فارسی</a></li>

              <li><a data-language="fi" href="#">Suomi</a></li>

              <li><a data-language="fil" href="#">Filipino</a></li>

              <li><a data-language="fr" href="#">Français</a></li>

              <li><a data-language="ga" href="#">Gaeilge</a></li>

              <li><a data-language="gl" href="#">Galego</a></li>

              <li><a data-language="he" href="#">עברית</a></li>

              <li><a data-language="hi" href="#">हिन्दी</a></li>

              <li><a data-language="hu" href="#">Magyar</a></li>

              <li><a data-language="id" href="#">Indonesian</a></li>

              <li><a data-language="it" href="#">Italiano</a></li>

              <li><a data-language="ja" href="#">日本語</a></li>

              <li><a data-language="ko" href="#">한국어</a></li>

              <li><a data-language="ku" href="#">Kurdî (Kurmanji)</a></li>

              <li><a data-language="msa" href="#">Malay</a></li>

              <li><a data-language="nl" href="#">Nederlands</a></li>

              <li><a data-language="no" href="#">Norsk</a></li>

              <li><a data-language="pl" href="#">Polski</a></li>

              <li><a data-language="pt" href="#">português (Brasil)</a></li>

              <li><a data-language="ro" href="#">română</a></li>

              <li><a data-language="ru" href="#">Русский</a></li>

              <li><a data-language="sq" href="#">shqip</a></li>

              <li><a data-language="sr" href="#">srpski</a></li>

              <li><a data-language="sv" href="#">Svenska</a></li>

              <li><a data-language="th" href="#">ภาษาไทย</a></li>

              <li><a data-language="tr" href="#">Türkçe</a></li>

              <li><a data-language="uk" href="#">Українська мова</a></li>

              <li><a data-language="ur" href="#">اردو</a></li>

              <li><a data-language="xx-lc" href="#">LOLCATZ</a></li>

              <li><a data-language="zh-cn" href="#">简体中文</a></li>

              <li><a data-language="zh-tw" href="#">繁體中文</a></li>

          </ul>
          <ul class="links">
            <li class="first">&copy; 2013 Twitter</li>
            <li><a href="https://twitter.com/about">About</a></li>
            <li><a href="https://support.twitter.com">Help</a></li>
            <li><a href="http://status.twitter.com/">Status</a></li>
          </ul>
        </div>
      </div>
    </div>
    <script src="https://abs.twimg.com/errors/503-7539815f2e5206e843d73087bc6f28c4.js"></script>
  </body>
</html>