Skip to content

Commit 6428280

Browse files
committed
403 error message
1 parent d3e3821 commit 6428280

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

components/microsoft_outlook/microsoft_outlook.app.mjs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,14 @@ export default {
276276
headers: this._getHeaders(headers),
277277
...otherConfig,
278278
};
279-
280-
return axios($ ?? this, config);
279+
try {
280+
return await axios($ ?? this, config);
281+
} catch (error) {
282+
if (error.response.status === 403) {
283+
throw new Error("Insufficient permissions. Please verify that your Microsoft account has the necessary permissions to perform this operation.");
284+
}
285+
throw error;
286+
}
281287
},
282288
async createHook({ ...args } = {}) {
283289
const response = await this._makeRequest({

components/microsoft_outlook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/microsoft_outlook",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "Pipedream Microsoft Outlook Components",
55
"main": "microsoft_outlook.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)