Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-993

User feedback endpoint returns 502 when querying too many recordings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      Stumbled upon this while debugging the new user feedback page that fails to load user feedback on page load (at least for me).

      Turns out it is caused by requesting feedback for too many recordings at a time.
      This query returns a 502 (45 items requested):

      https://test-api.listenbrainz.org/1/feedback/user/mr_monkey/get-feedback-for-recordings?recordings=3472341b-5857-4941-9f4e-9d42bce759bd,a84a4bfc-9928-4ebd-affc-5759a33f6442,64ce3b60-a68a-414f-b047-5e0c139f8ad7,4147bc45-cfcd-4b8d-a75a-682e5d4ffcf4,0fc97de7-81ff-48e9-b3e0-056ca1f812bf,1442c6f0-7e9f-4990-9497-8fedf2ce99d5,7128a020-c2fc-497a-8788-dbb6ed472936,5d478d07-9949-4fc7-917e-899f4cc3df48,c3a40c27-7fbd-4618-a025-07d0ef879b17,e2ab416c-8014-431e-a64f-e5d20a564319,9fe24c64-5ab4-465d-8dd7-075b345412e8,dcc9b55c-92a5-4732-b46c-41102c7068fb,72a39078-1b9f-479b-92f5-b7fa937c0a59,9b2cfcad-74cf-4e1e-8f17-65b7df9eb935,85952815-43f9-40c7-a436-982c7ceb0d3c,10b0c7ce-aa69-4d6e-8848-996ef984533b,de562f56-9b83-41dc-a2ba-46cd9c3f1c12,ee283721-079f-4f73-87b9-d5e1ac0716d2,2c1b8621-9983-4359-a918-1c07b1b96dca,4704b20d-2377-45de-aa87-089de93c2aaf,f527c741-6702-4f29-9917-b690c1130764,2600c6ee-ad26-4636-a4a1-cb8858644f7b,8ae8008d-de45-4db9-86bc-2525cb874cbd,98728cd3-f5f2-42dd-8509-44f550a75cbc,381ed53f-de58-4921-8787-fca760d6da6e,406e4e84-c236-4845-8b6b-b9633eff2a9c,0fbdb6bc-bc79-432f-9cfc-eaa055d86abf,ab6f316d-940d-4835-8895-7575cb8f05e9,f35c7ccf-e26d-4e6c-bbc6-c1cf830f774c,86029707-5ad1-4b25-824e-b8e1f31b1f66,af6f0921-eebe-4f16-8968-b2b6ad9c5b7c,8aa379ad-852e-4794-9c01-64959f5d0b17,edfa0bb9-a58c-406c-9f7c-f16741443f9c,20059ffb-1615-4712-8235-a12840fb156e,da31a1d9-267a-4bad-bcd7-c6d2b1ab6539,75f7f913-8cb5-45b6-b154-7633ecec61ad,3fc76ff9-1985-4b83-9b81-e3a840e9d8fb,96e83a2d-9d75-4a93-8061-36ed2174a84b,ac15219d-5f2d-47d4-ba9f-7f8259e67e23,37c605a6-8fac-4c47-bdb6-ed12b4239a01,830ee421-c28b-4ff0-abfb-e43caa189983,ae9456a9-7477-419f-9aad-691b2f84e378,71d8053a-845d-4d68-a8e4-0eec52cc77bd,eacfa55b-3f70-44c1-a2f3-6e27ea9f0187,15497abd-f41c-4a1e-8bf6-e00fffb11f79
      

      while for example this one succeeds (41 items, only 4 less than above):

      https://test-api.listenbrainz.org/1/feedback/user/mr_monkey/get-feedback-for-recordings?recordings=3472341b-5857-4941-9f4e-9d42bce759bd,a84a4bfc-9928-4ebd-affc-5759a33f6442,64ce3b60-a68a-414f-b047-5e0c139f8ad7,4147bc45-cfcd-4b8d-a75a-682e5d4ffcf4,0fc97de7-81ff-48e9-b3e0-056ca1f812bf,1442c6f0-7e9f-4990-9497-8fedf2ce99d5,7128a020-c2fc-497a-8788-dbb6ed472936,5d478d07-9949-4fc7-917e-899f4cc3df48,c3a40c27-7fbd-4618-a025-07d0ef879b17,e2ab416c-8014-431e-a64f-e5d20a564319,9fe24c64-5ab4-465d-8dd7-075b345412e8,dcc9b55c-92a5-4732-b46c-41102c7068fb,72a39078-1b9f-479b-92f5-b7fa937c0a59,9b2cfcad-74cf-4e1e-8f17-65b7df9eb935,85952815-43f9-40c7-a436-982c7ceb0d3c,10b0c7ce-aa69-4d6e-8848-996ef984533b,de562f56-9b83-41dc-a2ba-46cd9c3f1c12,ee283721-079f-4f73-87b9-d5e1ac0716d2,2c1b8621-9983-4359-a918-1c07b1b96dca,4704b20d-2377-45de-aa87-089de93c2aaf,f527c741-6702-4f29-9917-b690c1130764,2600c6ee-ad26-4636-a4a1-cb8858644f7b,8ae8008d-de45-4db9-86bc-2525cb874cbd,98728cd3-f5f2-42dd-8509-44f550a75cbc,381ed53f-de58-4921-8787-fca760d6da6e,406e4e84-c236-4845-8b6b-b9633eff2a9c,0fbdb6bc-bc79-432f-9cfc-eaa055d86abf,ab6f316d-940d-4835-8895-7575cb8f05e9,f35c7ccf-e26d-4e6c-bbc6-c1cf830f774c,86029707-5ad1-4b25-824e-b8e1f31b1f66,af6f0921-eebe-4f16-8968-b2b6ad9c5b7c,8aa379ad-852e-4794-9c01-64959f5d0b17,edfa0bb9-a58c-406c-9f7c-f16741443f9c,20059ffb-1615-4712-8235-a12840fb156e,da31a1d9-267a-4bad-bcd7-c6d2b1ab6539,75f7f913-8cb5-45b6-b154-7633ecec61ad,3fc76ff9-1985-4b83-9b81-e3a840e9d8fb,96e83a2d-9d75-4a93-8061-36ed2174a84b,ac15219d-5f2d-47d4-ba9f-7f8259e67e23,37c605a6-8fac-4c47-bdb6-ed12b4239a01,830ee421-c28b-4ff0-abfb-e43caa189983
      

            kartik1712 amCap1712
            mr_monkey Monkey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package