md2cf
md2cf copied to clipboard
Cloud `spaces` vs Server `space`
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? :)
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"
@sanscontext, did @timocp's suggestion solve your issue?
I had to abandon the project, so I didn't get a chance to test.
FYI, I was having the same issue. @timocp, your method solved the issue for me 👍