Timeouts to a universal 30s, should address #214"

This commit is contained in:
James Barnsley
2017-10-10 21:14:35 +13:00
parent c8c3a38656
commit 3caac95c55
5 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ const sendRequest = (dispatch, getState, endpoint) => {
var config = {
method: 'POST',
cache: false,
timeout: 15000,
timeout: 30000,
headers: {
Authorization: 'Bearer 2AGP9sfzKQcxfKSZuGa_3lqsDIpuOiTGT7-vhJYcKaaDjHIIA2HICsxXCiC30Xxi'
},

View File

@ -19,7 +19,7 @@ const sendRequest = (dispatch, getState, params ) => {
var config = {
method: 'GET',
cache: true,
timeout: 15000,
timeout: 30000,
url: '//ws.audioscrobbler.com/2.0/?format=json&api_key=4320a3ef51c9b3d69de552ac083c55e3&'+params
}

View File

@ -165,7 +165,7 @@ const MopidyMiddleware = (function(){
store.dispatch(uiActions.stopLoading(loader_key));
reject({message: "Request timed out", call: call, value: value});
},
15000
30000
);
mopidyObject(value)

View File

@ -69,7 +69,7 @@ const PusherMiddleware = (function(){
store.dispatch(uiActions.stopLoading(request_id));
reject({message: "Request timed out", method: method, data: data});
},
15000
30000
);
// add query to our deferred responses

View File

@ -33,7 +33,7 @@ const sendRequest = (dispatch, getState, endpoint, method = 'GET', data = false)
method: method,
url: url,
cached: true,
timeout: 15000,
timeout: 30000,
headers: {
Authorization: 'Bearer '+ response
}