md2cf icon indicating copy to clipboard operation
md2cf copied to clipboard

Cloud `spaces` vs Server `space`

Open sanscontext opened this issue 1 year ago • 4 comments

I did some hilarious scripting to clean up my markdown dump to make it acceptable to the tool, and now instead I'm getting

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://<mycompany>.atlassian.net/wiki/space/TEST?expand=homepage

When I go to actually look at Confluence Cloud's URL for the TEST space it's https://<mycompany>.atlassian.net/wiki/spaces/TEST (note the plural spaces).

Have I missed something or found a bug? :)

sanscontext avatar Jun 01 '23 20:06 sanscontext

I had a similar error because I was using the wrong url. For cloud, the host param needs to include the path to version 1 of the cloud rest api - I think you're missing the /rest/api part.

CONFLUENCE_HOST="https://<mycompany>.atlassian.net/wiki/rest/api"

timocp avatar Jun 30 '23 00:06 timocp

@sanscontext, did @timocp's suggestion solve your issue?

iamjackg avatar Oct 22 '23 01:10 iamjackg

I had to abandon the project, so I didn't get a chance to test.

sanscontext avatar Oct 23 '23 18:10 sanscontext

FYI, I was having the same issue. @timocp, your method solved the issue for me 👍

James-Rocker avatar Nov 02 '23 17:11 James-Rocker