actually nothing, ordinary use of Zaraz + Cloudflare Pages - and not having any custom Workers, just
actually nothing, ordinary use of Zaraz + Cloudflare Pages - and not having any custom Workers, just using CF services with Workers
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?/cdn-cgi/mf/scheduled but I don't believe that's a thing anymore with v3 unfortunately.--test-scheduled flag and hit the __scheduled route at the root of the domain. but once it's pushed to a development environment in CF, you have to wait for the event to trigger so I was hoping we could somehow trigger it manually.

undefined. Anyone can help? I have no idea why it can't see each other when running locally.--remote (using Wrangler v3.0.0), I get this error: text: 'workers.api.error.service_binding_env_error: could not resolve binding "SERVICES":--remote, it spits out the error message just a short time after starting. When running locally (which is the default since wrangler v3.0.0 I assume), the env.SERVICE is undefined. Running live, no problem.Requestcompatibility_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--test-scheduled__scheduled__scheduled/cdn-cgi/mf/scheduled[env.dev]
vars = { ENVIRONMENT = "dev", ENV = "dev" }
services = [
{ binding = "SERVICES", service = "workers-services", environment = "dev" }
][env.dev]
name = "workers-services"
vars = { ENVIRONMENT = "dev", ENV = "dev" }--remote--remoteenv.SERVICEdeclare module "cloudflare:sockets" {
function _connect(
address: string | SocketAddress,
options?: SocketOptions
): Socket;
export { _connect as connect };
}