Timeouts to a universal 30s, should address #214"
This commit is contained in:
@ -19,7 +19,7 @@ const sendRequest = (dispatch, getState, endpoint) => {
|
|||||||
var config = {
|
var config = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
cache: false,
|
cache: false,
|
||||||
timeout: 15000,
|
timeout: 30000,
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: 'Bearer 2AGP9sfzKQcxfKSZuGa_3lqsDIpuOiTGT7-vhJYcKaaDjHIIA2HICsxXCiC30Xxi'
|
Authorization: 'Bearer 2AGP9sfzKQcxfKSZuGa_3lqsDIpuOiTGT7-vhJYcKaaDjHIIA2HICsxXCiC30Xxi'
|
||||||
},
|
},
|
||||||
|
|||||||
@ -19,7 +19,7 @@ const sendRequest = (dispatch, getState, params ) => {
|
|||||||
var config = {
|
var config = {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
cache: true,
|
cache: true,
|
||||||
timeout: 15000,
|
timeout: 30000,
|
||||||
url: '//ws.audioscrobbler.com/2.0/?format=json&api_key=4320a3ef51c9b3d69de552ac083c55e3&'+params
|
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));
|
store.dispatch(uiActions.stopLoading(loader_key));
|
||||||
reject({message: "Request timed out", call: call, value: value});
|
reject({message: "Request timed out", call: call, value: value});
|
||||||
},
|
},
|
||||||
15000
|
30000
|
||||||
);
|
);
|
||||||
|
|
||||||
mopidyObject(value)
|
mopidyObject(value)
|
||||||
|
|||||||
@ -69,7 +69,7 @@ const PusherMiddleware = (function(){
|
|||||||
store.dispatch(uiActions.stopLoading(request_id));
|
store.dispatch(uiActions.stopLoading(request_id));
|
||||||
reject({message: "Request timed out", method: method, data: data});
|
reject({message: "Request timed out", method: method, data: data});
|
||||||
},
|
},
|
||||||
15000
|
30000
|
||||||
);
|
);
|
||||||
|
|
||||||
// add query to our deferred responses
|
// add query to our deferred responses
|
||||||
|
|||||||
@ -33,7 +33,7 @@ const sendRequest = (dispatch, getState, endpoint, method = 'GET', data = false)
|
|||||||
method: method,
|
method: method,
|
||||||
url: url,
|
url: url,
|
||||||
cached: true,
|
cached: true,
|
||||||
timeout: 15000,
|
timeout: 30000,
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: 'Bearer '+ response
|
Authorization: 'Bearer '+ response
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user