mirror of
https://github.com/foomo/sesamy-cli.git
synced 2025-10-16 12:35:36 +00:00
Merge pull request #129 from foomo/feature/increase-timeouts
feat: increase timeouts
This commit is contained in:
commit
acf13a73b1
@ -113,7 +113,7 @@ const headerList = ["referer", "user-agent"];
|
||||
const requestUrl = merchantUrl+'?'+serializeData(mappedData);
|
||||
const requestOptions = {
|
||||
headers: generateRequestHeaders(headerList, cookieList),
|
||||
timeout: 500,
|
||||
timeout: 1000,
|
||||
};
|
||||
|
||||
return sendHttpGet(requestUrl, requestOptions).then((result) => {
|
||||
|
||||
@ -531,7 +531,7 @@ if (data.activateLogs) {
|
||||
|
||||
return sendHttpGet(url, {
|
||||
headers: {key: 'value'},
|
||||
timeout: 500,
|
||||
timeout: 1000,
|
||||
}).then((result) => {
|
||||
if (result.statusCode >= 200 && result.statusCode < 300) {
|
||||
data.gtmOnSuccess();
|
||||
|
||||
@ -129,7 +129,7 @@ if (!isConsentGivenOrNotRequired()) {
|
||||
const options = {
|
||||
headers: {'tracify-token': data.token},
|
||||
method: 'POST',
|
||||
timeout: 500,
|
||||
timeout: 1000,
|
||||
};
|
||||
const body = mapEventData();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user