Timeouts to a universal 30s, should address #214"
This commit is contained in:
@ -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'
|
||||
},
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user