deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

[Bug]: Deploying a project with no HTTP endpoints results in ISOLATE_INTERNAL_FAILURE

Open DaveTJones opened this issue 9 months ago • 2 comments

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

  1. create a project with entrypoint contents console.log("foo")
  2. attempt to deploy

Expected behavior

The project should deploy succesfully.

Environment

No response

Possible solution

No response

Additional context

No response

DaveTJones avatar Apr 30 '25 17:04 DaveTJones

I also am trying to use one without a http endpoint same error

TKTK123456 avatar Jul 20 '25 07:07 TKTK123456

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.

magurotuna avatar Jul 20 '25 15:07 magurotuna