Skip to content
This repository has been 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 opened this issue Jan 4, 2023 · 0 comments
Open

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

dmythro opened this issue Jan 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dmythro
Copy link

dmythro commented Jan 4, 2023

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
@dmythro dmythro added the bug Something isn't working label Jan 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant