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
Publish to confluence gives response 400 on version 3.2.0 #1330
Comments
Thanks, this is a bug and was introduced in #1306 I think it only occurs in situations where the content excerpt is not well-formatted HTML, which is the case for eg if you use Arc42 template. I will try to implement a fix soon. Thanks for reporting! cc @faltfe i think you are in the very same situation, thanks for letting us know! |
I cannot confirm the behaviour. The upload and creation of pages is working with 3.2.1. |
could you please share more insights via adding the output of the command with |
This HTTP 404 could be related to my issue #1332, which happened also in 3.2.0. I didn't try 3.2.1 yet. |
I would suggest to run with |
I checked the http wire logs, there is no double base |
The error is |
Initially i changed to 3.2.0 beause i wanted to have subpages without linebreaks. After upgrading to 3.2.0, from 3.1.2 I tried the publish to confluence once (without changes in my adoc and Config.groovy), and got no error (maybe because the pages were already there, from v3.1.2). It was only after I tried to publish with subpages higher than 1, that i got the error. Then, I deleted the confluence pages to try again with subpages=1, but got the 404 error again. So it is possible that the pages missing is the problem |
Ok, I went back to 3.1.2, created the confluence pages with subpage=2 (the version where the linebreaks are broken). Then upgraded to 3.2.1 and published to confluence again. Got no errors, and this fixed the broken linebreaks in the code snippets. I think it is how you said, the confluence step fails if the pages do not exist. |
Alright i think i have a solution, we could give it a try as soon as #1337 gets merged, would you mind to verify and use docToolchain |
could you please share a bit more information? at least Stacktrace, that shows the responseCode would be really helpful to get a direction to investigate :) |
@adriansuciu09 thanks for the input, although i am struggeling quite a lot to reproduce. The error indicates that the HTTP entity cannot be consumed properly. I created #1341 to ensure proper consumption in any case. |
@PacoVK thank you, i will give it a try when it merges :) |
@PacoVK works like a charm. Pages were created and everything works as expected (even subages > 1). Thanks a lot |
Thanks, for the feedback :) I will take care to create a release soon |
Is there any update? Here is my file tree (image links modified) Here is the contents.adoc
The 00_document_history.adoc
And my groovy (censored)
So you see there is nothing special about my code. Idea:Maybe this has sth to do with the API V1 cancelled by atlassian this year? Adrian has set |
@arutscheidt thanks for bringing this up again. To get more infos about the 404 could you please be so kind and
|
After changing over to doctoolchain v3.2.0 from v3.1.2, I cannot publish anything to confluence.
Here is the Error message:
Here is my confluence.with{} within the Config.groovy file:
If i change back to v3.1.2, everything works again.
The text was updated successfully, but these errors were encountered: