Confluence Throws ERROR: 400 in Browser When Manually Uploading Add-Ons

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

When uploading an Add-On through the Upload add-on link, the Uploading box does not update and the browser gets stuck waiting.

(Auto-migrated image: description temporarily unavailable)

Using Ctrl+Shift+I and watching the network tab, the following URL appears with a 400 error

  • https://confluence.mycompany.com/confluence/rest/plugins/1.0/?token=7522426583166574927

And this error appears in the server response detail (this can be also seen in a HAR file).

1 2 3 4 <html><head><title>Error</title></head><body> <h2>ERROR: 400</h2> <br> </body></html>

Nothing is shown in atlassian-confluence.log or catalina.out.

Diagnosis

Environment

  • Confluence is running behind a reverse proxy

Cause

  • The reverse proxy is not allowing the upload of the file.

Solution

Resolution

Set up a non-proxied <Connector /> in server.xml and use that for uploading the Add-On. You can review the documentation here

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.