iamjackg / md2cf

Convert and upload Markdown documents to Confluence
MIT License
91 stars 49 forks source link

Cloud `spaces` vs Server `space` #87

Open sanscontext opened 1 year ago

sanscontext commented 1 year ago

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? :)

timocp commented 1 year ago

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"
iamjackg commented 10 months ago

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

sanscontext commented 10 months ago

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

James-Rocker commented 10 months ago

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