You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server
Linux: DESKTOP-93GMCH3 4.4.0-43-Microsoft Adapter API #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
Node: v8.9.4
Client
Windows 10
Chrome version 65.0.3325.181(Official Build) (64 bit)
I thought that this issue relates ReadableStream.
We do not get body, if getExperimentSetting get 404. And, maybe data left on ReadableStream.
I modify code as follows and it works fine.
getExperimentSetting: function(experimentName){constheaders={Authorization: `Bearer ${window.API.jwt}`,Accept: 'application/json',};returnfetch(`/settings/experiments/${encodeURIComponent(experimentName)}`,{method: 'GET',headers: headers,}).then(function(response){if(!response.ok){// If do not get body, met net::ERR_ABORTED on chrome.if(response.body&&response.body.cancel){response.body.cancel();}thrownewError(`Error getting ${experimentName}`);}returnresponse.json().then(function(json){returnjson.enabled;}).catch(function(e){thrownewError(`Error getting ${experimentName}${e}`);});});},
We can fix this error, but I'm not sure if this error will do something bad.
The text was updated successfully, but these errors were encountered:
I met fetch error, if i load gateway page.
Server
Linux: DESKTOP-93GMCH3 4.4.0-43-Microsoft Adapter API #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
Node: v8.9.4
Client
Windows 10
Chrome version 65.0.3325.181(Official Build) (64 bit)
I thought that this issue relates ReadableStream.
We do not get body, if
getExperimentSetting
get 404. And, maybe data left on ReadableStream.I modify code as follows and it works fine.
We can fix this error, but I'm not sure if this error will do something bad.
The text was updated successfully, but these errors were encountered: