Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

post confluence api not working on firebase

I am  calling confluence API inside my Node API, it works fine on my localhost but when i host my node APIs on firebase it gives me error every time i hit the endpoint.

On localhost i am able to create page easily on confluence, and if i try to create same page again, then receiving proper error of "Page already created!".


When hosted on firebase i receive below error even if page is not yet created.


"error": {
"errno": "EAI_AGAIN",
"errno": "EAI_AGAIN",
"code": "EAI_AGAIN",
"syscall": "getaddrinfo",
"hostname": "",
"host": "",
"port": 443

#my code



//using params inside my bodyData

var bodyData = `some data with ${params} inside it`

var options = { 
method: 'POST',        
url: '',        
headers: {        
'ContentType': 'application/json',
'Authorization': 'Basic <token>'        
body: bodyData,    

then(response =>{        

//console.log("REsponse: "+response)        

return res.send(response)   


 .catch((error=> {                

//console.log('yahoo :'+error.message)        

return res.send(error)   



1 answer

1 vote

Hello @Nitin_Kushwaha ,

Welcome to the Atlassian Community!

As written in the NodeJS Error - errno EAI_AGAIN page:

EAI_AGAIN is actually a DNS lookup timed out error means it is either a network connectivity error or some proxy related error. Try resolving your proxy settings and check you have a decent internet connection or not. It will resolve your problem, if not try upgrading npm to the latest version ( using npm install npm@latest ), as there might be scenario that you are using older version of npm.

To summarize:

  1. The error has nothing to do with Confluence, it is just saying that the resolution of your instance address ( failed
  2. Not being able to resolve your instance name, the REST request is not even sent to Confluence and therefore it is perfectly normal that you get the error message even if the page has not been already created.


For further details, you may also want to review below links:



Finally, for the future, this might not the best place to get help on development  related questions. You have much higher chances to get help on development related question using the links you can find in 





Suggest an answer

Log in or Sign up to answer
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

140 views 0 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you