I've tried a few instances of switchPort and container.fetch with little success but will see if doi
I've tried a few instances of switchPort and container.fetch with little success but will see if doing defaultPort helps. Thanks!
defaultPort?: Optional default port to use when communicating with the container. If not set, you must specify port in containerFetch calls, or use switchPort.So if not using containerFetch (and not using default port), use normal fetch like:
container.fetch(switchPort(request, port))
**Do not use 'containerFetch' when trying to send a Request object with a websocket, until this issue is addressed. You can overcome this limitation by doing: container.fetch(switchPort(request, port))https://github.com/cloudflare/containers/tree/main
AssertionError: Build ID should be set if containers are defined and enabled when running integration tests with containers enabled?
--build-args or something similar when building a Dockerfileimage_vars in the Wrangler config under containersARG or something like thathttps://dash.cloudflare.com/<account-id>/billing/billable-usage so the best thing it seems would be to use the GraphQL analytics api"The image registry does not exist" AssertionError: Build ID should be set if containers are defined and enabled--build-argimage_varscontainersARGhttps://dash.cloudflare.com/<account-id>/billing/billable-usage"The image registry does not exist"{
"containers": [
{
"class_name": "MyContainer",
"image": "./Dockerfile",
"max_instances": 10,
"instance_type": "basic",
"image_vars": {
"FOO": "BAR"
}
}
]
}