-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle error response and fail fast #7
Comments
Seeing the same error, I think it's because my Confluence wiki won't accept user/pass, it only accepts logins using an API token. |
You can use API tokens. I need to update the README to explain it, but set your username as the email and the password as an API token generated from https://id.atlassian.com/manage/api-tokens This issue is definitely warranted, though. It should check auth and fail before trying parse the markdown and upload. related: #3 |
Works! |
Minor note: if CONFLUENCE_ENDPOINT has a trailing '/' it does not work, had to remove that. |
Thanks! This solved it for me. |
currently, when the login fails for some reason, it seems the MarkDown parser is still called and consequently returns a followup error message because it cannot parse the real error response:
The real error is printed first, but not handled and the program tries to continue:
The way the error is handled is a bit misleading and not very intuitive, as it hides the root cause and it looks as if the file contained a markup error.
The text was updated successfully, but these errors were encountered: