9 Replies
      Latest reply on Nov 22, 2019 11:17 AM by jr.
      blackarcanis Level 1 Level 1 (0 points)

        Hi,

        I sometime got this error message when trying to add tracks to a playlist with the Apple Music API without specific reason (as my code is always the same):

        "{"errors":[{"id":"BBHVSNE2ESJ2SB24UDX7RAUJLE","title":"Invalid Request Body","detail":"Unable to parse request body","status":"400","code":"40007"}]}"

         

        Seems to be an error with some track IDs sent, but can't reproduce as the same request will sometime work/sometime no.

        The error message is not specific, must be improved and having more details.

         

        Here's the associate "data" field with IDs:

         

        [{"id":"1443234959","type":"songs"},{"id":"260758659","type":"songs"},{"id":"1440822258","type":"songs"},{"id":"1440822404","type":"songs"},{"id":"201274644","type":"songs"},{"id":"295784137","type":"songs"},{"id":"1443299896","type":"songs"},{"id":"1281713004","type":"songs"},{"id":"606057317","type":"songs"},{"id":"606057325","type":"songs"},{"id":"663114226","type":"songs"},{"id":"606057321","type":"songs"},{"id":"676287692","type":"songs"},{"id":"251948354","type":"songs"},{"id":"576655099","type":"songs"},{"id":"573962555","type":"songs"},{"id":"465744628","type":"songs"},{"id":"510168339","type":"songs"},{"id":"1440902768","type":"songs"},{"id":"1443455810","type":"songs"},{"id":"1443455804","type":"songs"},{"id":"924035389","type":"songs"},{"id":"1440859596","type":"songs"},{"id":"434815633","type":"songs"},{"id":"858517165","type":"songs"},{"id":"1440863108","type":"songs"},{"id":"1440812204","type":"songs"},{"id":"470758198","type":"songs"},{"id":"1377826892","type":"songs"},{"id":"630283721","type":"songs"},{"id":"1263704271","type":"songs"},{"id":"821681054","type":"songs"},{"id":"158614534","type":"songs"},{"id":"510225627","type":"songs"},{"id":"50235014","type":"songs"},{"id":"50235016","type":"songs"},{"id":"400946435","type":"songs"},{"id":"715891658","type":"songs"},{"id":"1440819062","type":"songs"},{"id":"1440818897","type":"songs"},{"id":"716192621","type":"songs"},{"id":"487245253","type":"songs"},{"id":"572884947","type":"songs"},{"id":"1090088442","type":"songs"},{"id":"464532969","type":"songs"},{"id":"807600196","type":"songs"},{"id":"1440814009","type":"songs"},{"id":"1440858896","type":"songs"},{"id":"721253705","type":"songs"},{"id":"1440858175","type":"songs"},{"id":"893013350","type":"songs"},{"id":"1383521769","type":"songs"},{"id":"1270065322","type":"songs"},{"id":"721216982","type":"songs"},{"id":"1440873977","type":"songs"},{"id":"1440862244","type":"songs"},{"id":"1440874203","type":"songs"},{"id":"721210538","type":"songs"},{"id":"721210544","type":"songs"},{"id":"929825615","type":"songs"},{"id":"1440827392","type":"songs"},{"id":"1444073621","type":"songs"},{"id":"943946671","type":"songs"},{"id":"1440829431","type":"songs"},{"id":"580695853","type":"songs"},{"id":"929825619","type":"songs"},{"id":"929825624","type":"songs"},{"id":"383458589","type":"songs"},{"id":"466581404","type":"songs"},{"id":"849069529","type":"songs"},{"id":"1440813456","type":"songs"},{"id":"1440854619","type":"songs"},{"id":"545398147","type":"songs"},{"id":"545398139","type":"songs"},{"id":"258642190","type":"songs"},{"id":"593148438","type":"songs"},{"id":"295224410","type":"songs"},{"id":"616276070","type":"songs"},{"id":"721686248","type":"songs"},{"id":"1443148562","type":"songs"},{"id":"1454638588","type":"songs"},{"id":"1432060582","type":"songs"},{"id":"947701032","type":"songs"},{"id":"514504434","type":"songs"},{"id":"1443223753","type":"songs"},{"id":"302989197","type":"songs"},{"id":"683639109","type":"songs"},{"id":"1440491261","type":"songs"},{"id":"255289443","type":"songs"},{"id":"1440934590","type":"songs"},{"id":"1440935894","type":"songs"},{"id":"1440935899","type":"songs"},{"id":"1440935902","type":"songs"},{"id":"1440935908","type":"songs"},{"id":"1440935913","type":"songs"},{"id":"1440936162","type":"songs"},{"id":"1440936171","type":"songs"},{"id":"1440936181","type":"songs"},{"id":"1440936283","type":"songs"},{"id":"1440936426","type":"songs"},{"id":"1440936463","type":"songs"},{"id":"1440936162","type":"songs"},{"id":"1440936474","type":"songs"},{"id":"1440936482","type":"songs"},{"id":"1443799539","type":"songs"},{"id":"1443920265","type":"songs"},{"id":"1440783474","type":"songs"},{"id":"260042093","type":"songs"},{"id":"1434740155","type":"songs"},{"id":"714587248","type":"songs"},{"id":"486040195","type":"songs"},{"id":"1443999002","type":"songs"},{"id":"258633458","type":"songs"},{"id":"1442258767","type":"songs"},{"id":"1440857725","type":"songs"},{"id":"1440857729","type":"songs"},{"id":"1440857730","type":"songs"},{"id":"400135918","type":"songs"},{"id":"724223119","type":"songs"},{"id":"1300702242","type":"songs"},{"id":"1452792498","type":"songs"},{"id":"207316133","type":"songs"},{"id":"251081851","type":"songs"},{"id":"1440824580","type":"songs"},{"id":"281752590","type":"songs"},{"id":"167651542","type":"songs"},{"id":"545398137","type":"songs"},{"id":"545398138","type":"songs"},{"id":"1440754487","type":"songs"},{"id":"1440867183","type":"songs"},{"id":"1440885797","type":"songs"},{"id":"929825616","type":"songs"},{"id":"1083641053","type":"songs"},{"id":"303682919","type":"songs"},{"id":"1440858336","type":"songs"},{"id":"941366737","type":"songs"},{"id":"929825619","type":"songs"},{"id":"1031416183","type":"songs"},{"id":"1440815622","type":"songs"},{"id":"1110121977","type":"songs"},{"id":"821681054","type":"songs"},{"id":"1440846373","type":"songs"},{"id":"1370924883","type":"songs"},{"id":"1444896450","type":"songs"},{"id":"1251713725","type":"songs"},{"id":"1342658106","type":"songs"},{"id":"714287575","type":"songs"},{"id":"1440853242","type":"songs"},{"id":"1351991983","type":"songs"},{"id":"323489062","type":"songs"},{"id":"298396531","type":"songs"},{"id":"1440858901","type":"songs"},{"id":"283567164","type":"songs"},{"id":"721215888","type":"songs"},{"id":"217503142","type":"songs"},{"id":"1440661140","type":"songs"},{"id":"1445039161","type":"songs"},{"id":"1440889001","type":"songs"},{"id":"308522273","type":"songs"},{"id":"1440925452","type":"songs"},{"id":"1444876145","type":"songs"},{"id":"1277187683","type":"songs"},{"id":"1452802030","type":"songs"},{"id":"724349113","type":"songs"},{"id":"1440771048","type":"songs"},{"id":"692225584","type":"songs"},{"id":"255277764","type":"songs"},{"id":"580695853","type":"songs"},{"id":"1081573445","type":"songs"},{"id":"260041613","type":"songs"},{"id":"1031416183","type":"songs"},{"id":"943946671","type":"songs"},{"id":"1440817504","type":"songs"}]

         

        Thank you for your help.