Skip to main content
Question

504 Error creating webhooks

  • May 22, 2026
  • 1 reply
  • 28 views

Gian Nascimento

Hi there,

I am trying to create webhooks to receive requests when a file is updated but when I send the request, it hangs for 2min and then I see the error:

```

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>

<HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
    <TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD>

<BODY>
    <H1>504 Gateway Timeout ERROR</H1>
    <H2>The request could not be satisfied.</H2>
    <HR noshade size="1px">
    We can't connect to the server for this app or website at this time. There might be too much traffic or a
    configuration error. Try again later, or contact the app or website owner.
    <BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
    <BR clear="all">
    <HR noshade size="1px">
    <PRE>
Generated by cloudfront (CloudFront) HTTP3 Server
Request ID: jU7__L_fyYJ0oB0zA6kzBU_qWK6yJM7SKahZ2A2C2XPj8qYcsoO6nQ=&#x3D;
</PRE>
    <ADDRESS>
    </ADDRESS>
</BODY>

</HTML>
```

The request is structured like the following:
POST - https://api.figma.com/v2/webhooks

Body:
```
 

{

"event_type": "FILE_UPDATE",

"context": "file",

"context_id": "<file id>",

"endpoint": "<lambda url>",

"passcode": "<passcode>"

}
```

I can ensure the lambda has no auth and returns a 200 http code in less than a second. 

Can you help me understand what I am missing?

1 reply

Jaycee Lewis
Figmate

Hey, ​@Gian Nascimento 👋 Thank you for sharing these details. Always helps in troubleshooting. While I don’t have the answer, I do have a few additional questions to help us narrow things down a bit:

  • Is the endpoint a public Lambda Function URL (the *.lambda-url.<region>.on.aws kind) with auth set to NONE, or is it behind API Gateway / a VPC / something with an IP allowlist?
  • What happens when you hit your endpoint from a totally unrelated network (e.g., a phone on cellular, or curl from a free online tool) with a POST and a JSON body

Talk soon! — Jaycee