REST call gives Request too large. Requests for this resource can be at most 5242880 bytes error

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

Problem

When making a REST call to Confluence the console gives the error

{"statusCode":413,"message":"Request too large. Requests for this resource can be at most 5242880 bytes"}

Cause

There is a hard coded limit of 5242880 bytes (5 *1024 *1024) for the maximum data payload when making a REST call to Confluence.

Resolution

See Configuring System Properties and set atlassian.rest.request.maxsize to a value larger than your content size in bytes, then restart Confluence.

-Datlassian.rest.request.maxsize=<SIZE-IN-BYTES>




Last modified on Jun 5, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.