Skip to content

npm package broken by >v1.60.1 #477

Open
@johnstonmatt

Description

@johnstonmatt

Bug report

If I deploy the following function it works on v1.60.1 but crashes on all later versions:

import { say } from "npm:cowsay";

Deno.serve((req) => {
  const { pathname } = new URL(req.url);
  if (pathname !== "/cowsay") {
    return new Response("Not Found", {
      status: 404,
    });
  }
  const query = new URL(req.url).searchParams;
  const text = query.get("message");

  if (!text || typeof text !== "string" || text.length === 0) {
    return new Response("Please provide a message", {
      status: 400,
    });
  } else {
    return new Response(say({ text }), {
      headers: {
        "Content-Type": "text/plain",
      },
    });
  }
});
  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-worker-scheduleArea: related to the worker schedulingC-bugCategory: something isn't workingE-hard

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions