Tino
04/20/2023, 12:59 PMTino
04/20/2023, 2:57 PMresponse = await context.env.GATEWAY.fetch(gatewayUrl, {
method: 'GET',
headers: headersObject,
})
console.log(response.status)
console.log(response.statusText)
const data = await response.json<ResponseJson>()
Worker B calling gateway worker A (last line is crashing the worker with the 'This ReadableStream is disturbed' isssue)
Logs: {
"message": [200],
"level": "log",
"timestamp": 1682002303360
},{
"message": ["OK"],
"level": "log",
"timestamp": 1682002303360
},{
"message": ["This ReadableStream is disturbed (has already been read from), and cannot be used as a body."],
"level": "error",
"timestamp": 1682002303360
}