Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API 404 Not Found

mark_stevenson February 21, 2022

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

1 answer

1 accepted

1 vote
Answer accepted
Pramodh M
Community Champion
February 21, 2022

@mark_stevenson 

use -k option and check once

curl -k -u username:password http://visconfluence:8080/rest/api/accessmode

mark_stevenson February 21, 2022

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>

Winderson Souza
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2022

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

https://marketplace.atlassian.com/apps/1211542/atlassian-rest-api-browser?tab=versions&hosting=server

 

 

Like # people like this
mark_stevenson February 22, 2022

I promise, I looked for version specific REST API doc, but they eluded me. Thank you so much for the links.

Problem solved.

Like Pramodh M likes this
mark_stevenson February 22, 2022

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.

Winderson Souza
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2022

You're accepting the threaded answer, since I replied to the thread, it's like it's just one answer. 

mark_stevenson February 22, 2022

Thanks again

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events