Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

502 Bad Gateway from time to time on Edge Function POST request #25

Open
@dmythro

Description

@dmythro

Bug report

Describe the bug

Getting 502 from time to time on a simple POST request.

To Reproduce

Function code, exactly as I have it now (just started testing functions with Authorization header):

import { serve } from "https://deno.land/[email protected]/http/server.ts"

console.log("Hello from Functions!")

serve((req: Request) => {
  const data = {
    message: `Hello ${req.headers.get("Authorization") || ""}!`,
  }

  return new Response(JSON.stringify(data), {
    headers: { "Content-Type": "application/json" },
  })
})

Expected behavior

Expect longer execution on a cold start, but not 502 on repeated request, even not on a cold start. Looks pretty unstable to me to use on projects.

Screenshots

image

System information

  • Region: eu-central-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions