Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Increased timeout for API response.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmschreiner committed Jun 13, 2017
1 parent cf439a8 commit dbe75ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ class Request {

constructor(apiKey = null) {

if (apiKey === null) throw new Error('You must provide the API key.')
if (apiKey === null) throw new Error('You must provide the HubSpot API key.')

this.apiKey = apiKey
this.apiInstance = axios.create({
baseURL: `${API_ENDPOINT}`,
timeout: 10000,
timeout: 300000, // 5 minutes
})
}

Expand Down

0 comments on commit dbe75ff

Please sign in to comment.