From 9d0cd005f83d234fc164e4996bb2355a0b286c95 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 18 Jul 2022 08:26:16 -0400 Subject: [PATCH] Increase Mendeley API timeout to 60 seconds To see if we can fix the 30-second timeout here: https://forums.zotero.org/discussion/comment/412750/#Comment_412750 --- chrome/content/zotero/import/mendeley/mendeleyAPIUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/import/mendeley/mendeleyAPIUtils.js b/chrome/content/zotero/import/mendeley/mendeleyAPIUtils.js index cc873e0d46..bfd6982ff8 100644 --- a/chrome/content/zotero/import/mendeley/mendeleyAPIUtils.js +++ b/chrome/content/zotero/import/mendeley/mendeleyAPIUtils.js @@ -33,7 +33,7 @@ const getNextLinkFromResponse = (response) => { const apiFetchUrl = async (tokens, url, headers = {}, options = {}) => { headers = { ...headers, Authorization: `Bearer ${tokens.access_token}` }; - options = { ...options, headers }; + options = { ...options, headers, timeout: 60000 }; const method = 'GET'; // Run the request. If we see 401 or 403, try to refresh tokens and run the request again