Connection reset by peer

  • Connection reset by peer

    we are experiencing "Connection reset by peer" error while executing call to artist.getSimilar method

    typical call:
    [Moderación pendiente]

    errors started arising as we migrated our application code from old to new machines (IP was changing)

    using wget call we found that setting a --limit-rate=2k results in successfull call

    May anyone help?

    thank you,

    • ereng001 escribió...
    • Usuario
    • 3 May 2012, 15:34



    Editado por Knapster01 el 3 May 2012, 15:50
    • tburny escribió...
    • Forum Moderator
    • 3 May 2012, 23:16
    Hi Simone,
    how many calls do you do per second/in five minutes? Do you have a normal API key? What purpose has the __correlation_id=1?

    There is a rate limit, if you do more than 5 requests per second (averaged over 5 minutes, so: 1500 requests per (second and IP address) ), your API key might get banned (if you don't have any other agreements on that with

    I think that by limiting the speed to 2 KiB/s, you make less calls to the API and don't hit any soft limits (I guess these exist).
    Maybe you can implement a rate limiter in your application and see if it works? Combine your favourite radio stations! | My Blog | scala-lastfmapi | Cache2k - A high performance Java in-memory cache
    P.S.: Do not click here
    throw new PokemonException(); //Gotta catch 'em all
    My forum post reflects my personal opinion :)
Los usuarios anónimos no pueden escribir mensajes. Para participar en los foros inicia sesión o crea una cuenta.