-
Notifications
You must be signed in to change notification settings - Fork 98
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
Cannot access Confluence (invalid Confluence URL or authentication failure reported) #848
Comments
If you can navigate to the Confluence URL printed in that message via a web browser with no issues, the next thing to check would be to try fetch the same URL with a command (depending on your host):
This could help rule our possible local proxy configurations or help identify some sort of remote proxy setup for the Confluence instance you may be trying to interact with. Typically, the first error shown is an indication of a remote system forcefully dropping/ignoring the request. This could be many things ~ the configure URL is not a Confluence-hosted instance, the REST pipe is configured to block traffic or more. The second error is a "HTTP 401 Unauthorized" response provided by the URL you are trying to query against. For a target Confluence instance, such a response is typically an indication that the expected credential information is incorrect. Is this a Cloud or Server instance? Using API tokens (since you have indicated you have set a username; so no PAT) or just a raw password? Maybe try generating a report and output this information here:
|
Hi, Have the same issue and tested with different confluence organisations, different py versions, different sphinx versions, different base os I would be grateful for any help The queries below are successful curl https://MYDOMAIN.atlassian.net/wiki/ curl -v https://MYDOMAIN.atlassian.net/wiki/ --user USER:TOKEN
(system) (configuration) (confluence instance)
(system) (configuration) (confluence instance)
Updates: When I use the parameters If I set the parameter(confluence_server_user, confluence_server_password or confluence_publish_token) values in conf.py, it doesn't work. |
@karedinvs, it looks to me that are you using a Confluence Cloud instance with API tokens; however, the key |
@jdknight Thank you for your response.
Yes I have tried many options. Authentication is successful only when entering the account username and user token manually. If I provide them using parameters, authentication is not successful. I see no other explanation except that this is some kind of bug. |
@jdknight your experience and expertise is required. We would be very grateful if you could help us find the problem. We have made many attempts - no success |
@karedinvs, just to clarify, since you are using API tokens, you are not using |
@jdknight to clarify:
and this one and got this message
I don't get why when I use the parameter confluence_ask_password = True Everything works fine |
Sorry @karedinvs, I am a bit confused on some of your responses. Above you have indicated that you are using API tokens, but at the same time you have also indicated that you are creating PATs. These are two different authentication methods provided by Confluence (unless Confluence has recently changed support for these two token types). From the messages you have indicated above, I am under the assumption that you are using API tokens and not PATs. This is due to your original comment indicating that using I would make sure in your test configuration that:
And after configuring this, run |
@jdknight hi |
It is believed that OP has either addressed their issue or is no longer pursuing. Unknown if the other investigation with connection issues was associated from OP, but since that issue was resolved, there no longer appears to be any more support requests here. With that in mind, marking this issue as closed. |
confluence_server_url, confluence_server_user, confluence_space_key are correct, but Sphinx cannot access Confluence during building:
![image](https://private-user-images.githubusercontent.com/120357285/273444226-1d8d6cfa-c4c5-4426-9f72-cb305c8254d7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNDAyNjcsIm5iZiI6MTcyMTMzOTk2NywicGF0aCI6Ii8xMjAzNTcyODUvMjczNDQ0MjI2LTFkOGQ2Y2ZhLWM0YzUtNDQyNi05ZjcyLWNiMzA1YzgyNTRkNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOFQyMTU5MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wYzBjNjhmZjNiZTA5NTkyYmQ4MmEzNWExODRmMTJkMzhjN2I1NjZmYWNjZDhmNzBhNGVjNWRhZjgzN2FlMmQ1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.m4hXZeHtLuZ82vkRCbwh-PcozB95hMGqMX1rVL-tlHs)
or
The text was updated successfully, but these errors were encountered: