<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 21/12/14 15:32, Martin Moores wrote:<br>
    </div>
    <blockquote
cite="mid:CAEBYFRLej8V2uev-VjeabFwaYy1Q=cBDK94J7=itsWHZTyBzXg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On 21 December 2014 at 08:15, Martin
            Moores <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:moores.martin@gmail.com" target="_blank">moores.martin@gmail.com</a>></span>
            wrote:
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_extra">
                  <div class="gmail_quote"><span class="">
                      <div><br>
                      </div>
                    </span>
                    <div><br>
                    </div>
                    <div>Which I assume is due to those channels not
                      existing in my lineup.  The odd thing is, the list
                      of unknown xmltv channel identifiers is different
                      for each day, like they are picked at random,
                      which would match the oddness of the data I am
                      getting!</div>
                    <div><br>
                    </div>
                    <div>Cheers</div>
                    <span class=""><font color="#888888">
                        <div><br>
                        </div>
                        <div>Martin</div>
                      </font></span></div>
                  <br>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
        <div class="gmail_extra">OK, think I can see what is happening.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Running:</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra"><span style="font-size:13px">tv_grab_uk_atlas
            --config-file  /home/user/.xmltv/tv_grub_uk_atlas/config
             --hours 1 --debug</span><br>
        </div>
        <div class="gmail_extra"><span style="font-size:13px"><br>
          </span></div>
        <div class="gmail_extra"><span style="font-size:13px">Shows the
            API call URLs being sent for data, e.g, one of the following
            for each channel:</span></div>
        <div class="gmail_extra"><span style="font-size:13px"><br>
          </span></div>
        <div class="gmail_extra"><a moz-do-not-send="true"
href="http://atlas.metabroadcast.com/3.0/schedule.json?channel_id=cbbs&from=1419169495&to=1419173095&annotations=extended_description,broadcasts,series_summary,brand_summary,people,channel&publisher=pressassociation.com&apiKey=****APIKEYHERE****">http://atlas.metabroadcast.com/3.0/schedule.json?channel_id=cbbs&from=1419169495&to=1419173095&annotations=extended_description,broadcasts,series_summary,brand_summary,people,channel&publisher=pressassociation.com&apiKey=****APIKEYHERE****</a><br>
        </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Putting this in a browser gives:</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">{"error":{"message":"An internal server
          error
occurred","error_code":"INTERNAL_ERROR","error_id":"b033a50d-049e-492b-917e-425d51f506bb"}}<br>
        </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">About one in five refreshes of that
          URL, I get a page of data back, which would explain the patchy
          data I am getting from mythfilldatabase.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Anyone able to test this with their API
          key?  Would show if it is the service that is broken or my API
          key that is limited.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">I can also get the "server error" when
          testing on their admin page:</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra"><a moz-do-not-send="true"
            href="http://atlas.metabroadcast.com/#apiExplorer">http://atlas.metabroadcast.com/#apiExplorer</a><br>
        </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Cheers</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Martin</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
    </blockquote>
    Martin,<br>
    <br>
    Just checked using one of the API keys I got yesterday, it is
    behaving as is yours, works every 1 out of 5 or so refreshes on the
    URL. My original key works everytime.<br>
    <br>
    Looks like the API key checking routine at the metabroadcast end has
    problems in that it sometimes validates ok and not at other times,
    which would be consistent with what we are seeing.  <br>
    <br>
    Mike<br>
    <br>
    <br>
  </body>
</html>