Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions components/azure_devops/azure_devops.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
_personalAccessToken() {
return this.$auth.personal_access_token;
},
_makeRequest(args = {}) {
async _makeRequest(args = {}) {
const {
$ = this,
url,
Expand All @@ -68,7 +68,14 @@ export default {
? "&"
: "?";
config.url += `api-version=${API_VERSION}`;
return axios($, config);
try {
return await axios($, config);
} catch (error) {
if (error.response?.status === 401 && !useOAuth) {
throw new ConfigurationError("Azure DevOps Personal Access Token is required for this operation. Please verify that your personal access token is correct.");
}
throw error;
}
},
async listAccounts(args = {}) {
const { value } = await this._makeRequest({
Expand Down
2 changes: 1 addition & 1 deletion components/azure_devops/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/azure_devops",
"version": "0.1.0",
"version": "0.1.1",
"description": "Pipedream Azure DevOps Components",
"main": "azure_devops.app.mjs",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion components/azure_devops/sources/new-event/new-event.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import azureDevops from "../../azure_devops.app.mjs";

export default {
name: "New Event (Instant)",
version: "0.0.3",
version: "0.0.4",
key: "azure_devops-new-event",
description: "Emit new event for the specified event type.",
type: "source",
Expand Down
Loading