thank you for your efforts, but will be same for you in few seconds I think
thank you for your efforts, but will be same for you in few seconds I think
Request and Response


compatibility_date why creating new Request objects would result in an empty object? Using module syntax, trying to create any new requests from within a module results in {} when outputting it to console even with console.log(JSON.stringify(req)) ... bit stumped as this was working just fine before I tried migrating things to Wrangler v3 and updated my compatibility_date ... any ideas?requests is an array of Request objects)...scheduledEvent from a development environment similar to the --test-scheduled flag and hitting the __scheduled route locally?fl=368f25
h=wope.com
ip=removed
ts=1684621097.855
visit_scheme=https
uag=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
colo=MIA
sliver=005-tier1
http=http/3
loc=KY
tls=TLSv1.3
sni=plaintext
warp=off
gateway=off
rbi=off
kex=X25519RequestResponsecompatibility_dateconsole.log(JSON.stringify(req))compatibility_date requestsconst responseData = await Promise.all(requests.map(request => fetch(request).then(r => r.json())))Cannot read properties of undefined (reading 'map')
TypeError: Cannot read properties of undefined (reading 'forEach')export async function example() {
const endpoints = generateEndpoints() // returns a simple array of string URLs to fetch
let requests = endpoints.map(endpoint => new Request(endpoint, { headers: { cookie } }))
let responses = await Promise.all(requests.map(request => fetch(request).then(r => r.json())))
let data = responses.map(response => processResponse(response['records']))
let records = data.flat(3)
records.forEach(a => {
// Failure is this forEach
})
}scheduledEvent--test-scheduled__scheduleddeclare module "cloudflare:sockets" {
function _connect(
address: string | SocketAddress,
options?: SocketOptions
): Socket;
export { _connect as connect };
}