pulibrary / aspace_helpers

methods and reports to support common SC activities in ArchivesSpace
1 stars 0 forks source link

resolving linked_agents from accession records throws an error in repo 3 #508

Closed regineheberlein closed 3 months ago

regineheberlein commented 3 months ago

This appears to be a data issue. It happens somewhere in the range of accession record id's

[24, 25, 26, 27, 32, 37, 38, 39, 44, 45, 46, 47, 48, 49, 55, 56, 59, 68, 69, 78, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 229, 230, 231, 241, 243, 251, 253, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 1196, 1207, 1219, 1265, 1267, 1276, 1277, 1286, 1294, 1306, 1307, 1315, 1319, 1323, 1331, 1332, 1354, 1364, 1383, 1387, 1396, 1398, 1399, 1400, 1414, 1415, 1416, 1423, 1424, 1435, 1454, 1455, 1456, 1457, 1461, 1467, 1468, 1470, 1477, 1478, 1480, 1498, 1499, 1500, 1501, 1506, 1522, 1534, 1535, 1536, 1537, 1538]

We need to narrow it down to find the record that is the actual problem.

kevinreiss commented 3 months ago

Per @regineheberlein this can be closed.

regineheberlein commented 3 months ago

As it turns out, the issue is the paginated endpoint. The default max is 250, which succeeds when not resolving linked refs. When resolving, trial and error says the max that will succeed is 60.