[Bug]: Deploying a project with no HTTP endpoints results in ISOLATE_INTERNAL_FAILURE
Problem description
Attempting to deploy a project with no HTTP endpoints fails with the error:
{"type":"error","code":"deploymentFailed","ctx":"The deployment failed: ISOLATE_INTERNAL_FAILURE"}
Given that this error can be triggered by
// Deno.serve(() => new Response("Hello, world!")); console.log("no chance")
whilst the following works fine
Deno.serve(() => new Response("Hello, world!")); console.log("this works now")
it would appear that the error is in some way due to the lack of a HTTP endpoint.
There are quite a few scenarios in which it would be handy to use Deno's cron api on deploy without serving anything e.g. to interact with a Telegram bot.
Steps to reproduce
- create a project with entrypoint contents
console.log("foo") - attempt to deploy
Expected behavior
The project should deploy succesfully.
Environment
No response
Possible solution
No response
Additional context
No response
I also am trying to use one without a http endpoint same error
To confirm an application has been deployed correctly, the system checks if the deployment accepts incoming requests. If not, it results in deployment failure.
The simplest fix is to really have an HTTP endpoint as you tried.