Question: I was trying to use the REST API of TeamCity but i can't find a list of all supported requests and the names of parameters. I wanted to look it up in their official documentation (<https://confluence.jetbrains.com/display/TCD10/REST+API>)  

where a link to exactly this list is provided  

(<http://teamcity:8111/app/rest/application.wadl>)  

but i just can't connect to it. Seems like the page is down.

I have googled all kinds of stuff in the hope to find this list somewhere else but i couldn't find anything smart.

Does anyone know where to find such a list or can provide one? That would be fantastic.

Thanks

Answer: 
I had the same problem and the following block of code was giving the same error message:

```
repositories.forEach( repo => {
        const commits = await getCommits(repo);
        displayCommit(commits);
});

```

The problem is that the method getCommits() was async but I was passing it the argument repo which was also produced by a Promise. So, I had to add the word async to it like this: async(repo) and it started working:

```
repositories.forEach( async(repo) => {
        const commits = await getCommits(repo);
        displayCommit(commits);
});

```
### A common problem in Express:

The warning can refer to the function, or ***where you call it***.

Express items tend to look like this:

```
app.post('/foo', ensureLoggedIn("/join"), (req, res) => {
    const facts = await db.lookup(something)
    res.redirect('/')
})

```

Notice the `=>` arrow function syntax for the function.

The problem is NOT actually in the db.lookup call, **but right here in the Express item**.

Needs to be:

```
app.post('/foo', ensureLoggedIn("/join"), async function (req, res) {
    const facts = await db.lookup(something)
    res.redirect('/')
})

```

Basically, nix the `=>` and add `async function` .