Using Confluence Data Center version 5.1. All Rest API end points return 404 Not Found. I am using curl commands directly from a Linux prompt. For example:
curl -v -u username:password http://visconfluence:8080/rest/api/accessmode.
I have tried both from the local host where confluence is installed and running as well as from a different node on the network. I have tried using both admin and non-admin users.
I can connect to Confluence as demonstrated in the curl results.
* About to connect() to visconfluence port 8080 (#0)
* Trying xxx.xxx.xxx.xxx...
* Connected to visconfluence (xxx.xxx.xxx.xxx) port 8080 (#0)
* Server auth using Basic with user 'U196883'
> GET /rest/api/accessmode HTTP/1.1
> Authorization: Basic VTE5Njg4MzpNbyRrMDIyMg==
> User-Agent: curl/7.29.0
> Host: visconfluence:8080
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=C263ED2F51736E0A44AE636B76AC6826; Path=/; HttpOnly
< X-Seraph-LoginReason: OK
< X-XSS-Protection: 1; mode=block
< Content-Type: text/html;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Mon, 21 Feb 2022 17:28:48 GMT
I have also tried adding 'confluence' context with the same result. Though expected this since this is found in the confluence:
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
I have been through earlier postings with no success.
Can you please provide me with help on troubleshooting this issue?
Thanks
use -k option and check once
curl -k -u username:password http://visconfluence:8080/rest/api/accessmode
No difference
curl -v -k -u username:password http://visconfluence:8080/rest/api/accessmode
* About to connect() to visconfluence port 8080 (#0)
* Trying xxx.xxx.xxx.xxx...
* Connected to visconfluence (xxx.xxx.xxx.xxx) port 8080 (#0)
* Server auth using Basic with user 'U196883'
> GET /rest/api/accessmode HTTP/1.1
> Authorization: Basic VTE5Njg4MzpNbyRrMDIyMg==
> User-Agent: curl/7.29.0
> Host: visconfluence:8080
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=6BDC826BB5351820A7A8A6EBB855AED8; Path=/; HttpOnly
< X-Seraph-LoginReason: OK
< X-XSS-Protection: 1; mode=block
< Content-Type: text/html;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Mon, 21 Feb 2022 17:56:16 GMT
<
<!DOCTYPE html>
<html>
<head>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @mark_stevenson , I don't believe this endpoint is available in 5.1, you can check some of the available endpoints here:
https://docs.atlassian.com/atlassian-confluence/REST/5.1/
You can also use the Rest API Browser to look for available endpoints
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I promise, I looked for version specific REST API doc, but they eluded me. Thank you so much for the links.
Problem solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Allow me to follow up with a NOOB question. When I check the "Answered Accepted" box, am I accepted the top most answer, or making a general statement that an answer has been accepted?
BTW, I was not able to install the REST API Browser. Posted a new question for that.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're accepting the threaded answer, since I replied to the thread, it's like it's just one answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.