Skip to content

Commit

Permalink
default time out in all requests to 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
barduinor committed Jun 17, 2024
1 parent 961e837 commit 356ea59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/postmanAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Collection {
this.collectionId = collectionId
this.apiKey = process.env.POSTMAN_API_KEY
this.axios = axios.create({
timeout: 1000 * 60, // 60 seconds
timeout: 1000 * 60 * 5, // 5 minutes
headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey }
})
}
Expand Down Expand Up @@ -58,7 +58,7 @@ class Folder {
this.collectionId = collectionId
this.apiKey = process.env.POSTMAN_API_KEY
this.axios = axios.create({
timeout: 1000 * 60, // 60 seconds
timeout: 1000 * 60 * 5, // 5 minutes
headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey }
})
}
Expand Down Expand Up @@ -120,7 +120,7 @@ class Request {
this.collectionId = collectionId
this.apiKey = process.env.POSTMAN_API_KEY
this.axios = axios.create({
timeout: 1000 * 60, // 60 seconds
timeout: 1000 * 60 * 5, // 5 minutes
headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey }
})
}
Expand Down Expand Up @@ -183,7 +183,7 @@ class Response {
this.collectionId = collectionId
this.apiKey = process.env.POSTMAN_API_KEY
this.axios = axios.create({
timeout: 1000 * 60, // 60 seconds
timeout: 1000 * 60 * 5, // 5 minutes
headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey }
})
}
Expand Down

0 comments on commit 356ea59

Please sign in to comment.