There is a bug when a cursor is returned from the “/api/v2/spaces” confluence cloud endpoint where an ‘=’ character is returned at the end of the cursor key. Im assuming that is not intentional as it is not documented anywhere I can see.
Steps to recreate:
make a request to the endpoint “/api/v2/spaces” with a limit so that the cursor is returned (I used {“limit”: 2})
when the response is received the response.links.get(“next”) will return a link that has a query parameter of cursor that has an ‘=’ at the end occasionally
Mitigation:
strip the string of ‘=’ and it seems to function correctly.