powerautomate-mcp 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3461,17 +3461,17 @@ var DataverseApi = class {
|
|
|
3461
3461
|
}
|
|
3462
3462
|
const responseText = Buffer.concat(chunks).toString("utf-8");
|
|
3463
3463
|
if (statusCode >= 400) {
|
|
3464
|
-
let
|
|
3464
|
+
let parsed;
|
|
3465
3465
|
try {
|
|
3466
|
-
|
|
3466
|
+
parsed = JSON.parse(responseText);
|
|
3467
3467
|
} catch {
|
|
3468
|
-
|
|
3468
|
+
parsed = responseText;
|
|
3469
3469
|
}
|
|
3470
|
-
const
|
|
3471
|
-
typeof
|
|
3470
|
+
const safeDetails = sanitizeErrorMessage(
|
|
3471
|
+
typeof parsed === "string" ? parsed : JSON.stringify(parsed)
|
|
3472
3472
|
);
|
|
3473
|
-
logger2.error({ statusCode, errorDetails:
|
|
3474
|
-
throw new ApiError(`${context}: API error`, statusCode,
|
|
3473
|
+
logger2.error({ statusCode, errorDetails: safeDetails, context }, "Dataverse API error");
|
|
3474
|
+
throw new ApiError(`${context}: API error`, statusCode, safeDetails);
|
|
3475
3475
|
}
|
|
3476
3476
|
if (!responseText) {
|
|
3477
3477
|
return { value: [] };
|
|
@@ -7383,7 +7383,7 @@ async function handleGetRunActionRepetitions(api, input) {
|
|
|
7383
7383
|
}
|
|
7384
7384
|
const totalCount = filtered.length;
|
|
7385
7385
|
filtered = filtered.slice(0, maxIter);
|
|
7386
|
-
const shouldFetchInputs = (
|
|
7386
|
+
const shouldFetchInputs = (_status) => {
|
|
7387
7387
|
if (parsed.includeInputs === true) return true;
|
|
7388
7388
|
return false;
|
|
7389
7389
|
};
|
|
@@ -14673,6 +14673,8 @@ function formatErrorMessage(error) {
|
|
|
14673
14673
|
} else {
|
|
14674
14674
|
rawMessage = String(error);
|
|
14675
14675
|
}
|
|
14676
|
+
rawMessage = sanitizeErrorMessage(rawMessage);
|
|
14677
|
+
apiDetails = sanitizeErrorMessage(apiDetails);
|
|
14676
14678
|
const fullMessage = rawMessage + " " + apiDetails;
|
|
14677
14679
|
if (fullMessage.includes("ConnectionAuthorizationFailed")) {
|
|
14678
14680
|
const connectorMatch = fullMessage.match(/apis\/([^/]+)/);
|