Skip to content

Commit a549480

Browse files
authored
Merge pull request #7825 from segmentio/develop
Release 25.32.1
2 parents 83deee1 + 444e384 commit a549480

File tree

20 files changed

+507
-378
lines changed

20 files changed

+507
-378
lines changed

scripts/catalog/updateSources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const updateSources = async () => {
3333
while (nextPageToken !== undefined) {
3434
const res = await getCatalog(`${PAPI_URL}/catalog/sources/`, nextPageToken);
3535
sources = sources.concat(res.data.sourcesCatalog);
36-
nextPageToken = res.data.pagination.next;
36+
nextPageToken = res.data.pagination?.next;
3737
}
3838

3939
// Sort the sources alphabetically

scripts/catalog/utilities.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,19 @@ const getCatalog = async (url, page_token = "MA==") => {
4747
'Content-Type': 'application/json',
4848
'Authorization': `Bearer ${process.env.PAPI_TOKEN}`
4949
},
50-
data: {
51-
"pagination": {
52-
"count": 200,
53-
"cursor": page_token
54-
}
50+
params: {
51+
"pagination.count": 200,
52+
"pagination.cursor": page_token
5553
}
5654
});
5755

5856
return res.data;
5957
} catch (error) {
60-
console.log("Something went wrong with the request to the Public API.\nIf you're updating a private destination, ensure the ID is correct.");
58+
console.log("Something went wrong with the request to the Public API.");
59+
console.log("Error:", error.message);
60+
console.log("Status:", error.response?.status);
61+
console.log("Data:", error.response?.data);
62+
throw error;
6163
}
6264
};
6365

src/_data/catalog/destination_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# destination categories last updated 2025-07-31
2+
# destination categories last updated 2025-08-07
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

0 commit comments

Comments
 (0)