# Confluence REST v1 Search Endpoint FAILS - Cursor of next URL is EXTRAORDINARILY long, leading to 413 error

**URL:** <https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098>\
**Category:** Confluence Cloud\
**Tags:** search, cql, rest-api\
**Created:** [September 5, 2025, 2:00pm UTC](https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098 "2025-09-05T14:00:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![heinrich-wikitraccs](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/heinrich-wikitraccs/32/50945_2.png) [@heinrich-wikitraccs](https://community.developer.atlassian.com/u/heinrich-wikitraccs)\
**Post date:** [September 5, 2025, 2:00pm UTC](https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098/1 "2025-09-05T14:00:25Z")

</div>

This started happening after Sept 4, 2025, around 2 PM.

Running the following CQL search returns results with a reeeeeeeeeeeaally long next URL:

`/wiki/rest/api/content/search?cql=type=page&limit=200`

 ![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/d/e/dee2acfdee206c87eae81018b0645f4274ffeb1e.png)

_(Note: in the screenshot I called the endpoint with an additional `expand` query parameter. But I checked, it makes no difference.)_

The `cursor`query param is 10981 characters long. Calling this massive next URL is not being liked by CloudFront:

> # 413 ERROR
> 
> ## The request could not be satisfied.
> 
> * * *
> 
> Bad request. 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.  
> If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
> 
> * * *
> 
> ```auto
> Generated by cloudfront (CloudFront)
> Request ID: h1PZRrF3xufbBG5CBNXixYBFA-LQhJyFzgu_V4Q_YIrAJvbcsuP8VA==
> 
> ```

The length seems to increase with the `limit`. Setting a limit of 100 (instead of 200) decreases the cursor to 5521 characters.

Smells like bug? Can anybody confirm this? Tested on 2 sites, both show that behavior.

---

<div class="post-metadata">

**Author:** ![Chris\_at\_DigitalRose](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/chris_at_digitalrose/32/41070_2.png) [@Chris\_at\_DigitalRose](https://community.developer.atlassian.com/u/Chris_at_DigitalRose)\
**Post date:** [September 5, 2025, 5:03pm UTC](https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098/2 "2025-09-05T17:03:43Z")

</div>

Confirmed we saw this on our development environment yesterday too. I’m guessing some sort of concatenation bug as the cursor has a repeating pattern.

---

<div class="post-metadata">

**Author:** ![TalSofer](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@TalSofer](https://community.developer.atlassian.com/u/TalSofer)\
**Post date:** [September 7, 2025, 9:07am UTC](https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098/3 "2025-09-07T09:07:58Z")

</div>

we also started experiencing these issues over the weekend.  
is there an official bug report we can follow up on?

---

<div class="post-metadata">

**Author:** ![heinrich-wikitraccs](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/heinrich-wikitraccs/32/50945_2.png) [@heinrich-wikitraccs](https://community.developer.atlassian.com/u/heinrich-wikitraccs)\
**Post date:** [September 7, 2025, 9:08am UTC](https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098/4 "2025-09-07T09:08:44Z")

</div>

> [@heinrich-wikitraccs](#):
>
> /wiki/rest/api/content/search?cql=type=page&limit=200

@Chris_at_DigitalRose You are right! Repeating pattern

 ![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/9/2/924c1b5d61367df28b5993c5ea1cf255a4b55a28.png)

---

<div class="post-metadata">

**Author:** ![BlintBerente](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/blintberente/32/54814_2.png) [@BlintBerente](https://community.developer.atlassian.com/u/BlintBerente)\
**Post date:** [September 9, 2025, 10:52am UTC](https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098/5 "2025-09-09T10:52:09Z")

</div>

Bumped into this issue as well, this is a joke. Opened an ECOHELP issue with Critical level, got some response but no official solution or confirmation yet.

---

<div class="post-metadata">

**Author:** ![BlintBerente](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/blintberente/32/54814_2.png) [@BlintBerente](https://community.developer.atlassian.com/u/BlintBerente)\
**Post date:** [September 9, 2025, 1:35pm UTC](https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098/6 "2025-09-09T13:35:29Z")

</div>

My ticket has been escalated to the endpoint owner, thus confirming an issue on their end.

---

<div class="post-metadata">

**Author:** ![BlintBerente](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/blintberente/32/54814_2.png) [@BlintBerente](https://community.developer.atlassian.com/u/BlintBerente)\
**Post date:** [September 10, 2025, 7:02am UTC](https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098/7 "2025-09-10T07:02:57Z")

</div>

> We identified that a change in one of the flags recently enabled on our side caused this problem. After disabling it, we internally confirmed that the long cursor does not happen anymore, even if the query parameter `limit` is set to a large number.

Could you guys please check as well?

Update: our app is working well now.

---

<div class="post-metadata">

**Author:** ![heinrich-wikitraccs](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/heinrich-wikitraccs/32/50945_2.png) [@heinrich-wikitraccs](https://community.developer.atlassian.com/u/heinrich-wikitraccs)\
**Post date:** [September 10, 2025, 1:38pm UTC](https://community.developer.atlassian.com/t/confluence-rest-v1-search-endpoint-fails-cursor-of-next-url-is-extraordinarily-long-leading-to-413-error/95098/8 "2025-09-10T13:38:46Z")

</div>

Looks good again. Thanks for going the ticket-route!
