Forums

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

Confluence API

teojunjia
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2022

Hi, I am trying to integrate Confluence API with Backstage:
backstage-plugin-confluence/plugins/search-confluence-backend at cfb102603994a90a5f0e100d360c9b0626c5913a · K-Phoen/backstage-plugin-confluence · GitHub

My setup as per below:
```

confluence:
  wikiUrl: https://{org}.atlassian.net/wiki/
  spaces: [ENG]
  auth:
    username: {email}
    password: {API key}

```

But there are error:
```
[1] 2022-10-20T08:17:27.689Z search error Collating documents for confluence failed: Error: Request failed with 404 Not Found type=plugin
[1] 2022-10-20T08:17:27.691Z search error Request failed with 404 Not Found type=taskManager task=search_index_confluence stack=Error: Request failed with 404 Not Found

```

Is there any issue with the URL because the error is not found

1 answer

0 votes
marc -Collabello--Phase Locked-
Community Champion
October 20, 2022

One possible error source could be that you have the { } around the username and password.  If you don't use environment variables, the curly braces should not be used.

teojunjia
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2022

Hi @marc -Collabello--Phase Locked- ,
Thank you for the reply. Actually in my source code I didn't put the curly brackets, I just pasted the username and password but it got error.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events