Report this

What is the reason for this report?

HTTP/2 Not Working on App Platform – 504 Error

Posted on April 15, 2025

I tried to enable HTTP/2 for my Next.js project, but got a 504 error after redeploying. Initially, I thought the issue was related to my codebase or project setup, but then I discovered that HTTP/2 doesn’t seem to work on the App Platform at all.

Steps to reproduce:

  1. Start creating a new app on App Platform and choose “Sample app”
  2. Select any language or web framework (I tested with Node.js and Go sample apps)
  3. Choose a server size and deploy the app
  4. Open the deployed app to confirm it’s working
  5. Enable HTTP/2 support in the App Spec and wait for the redeployment
  6. Open the app again — you’ll get a 504 Gateway Timeout error


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya, @littleaquamarineangler

Have you checked our article on how to configyre http2 here:

https://docs.digitalocean.com/products/app-platform/how-to/configure-http2/

Regards

I hit the same problem as well. Can DigitalOcean confirm that the instructions are up-to-date? I, too, received instant 504 responses after setting protocol to HTTP2. My service supports HTTP/2.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.