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);
});

```
This in one file works..

Looks like await only is applied to the local function which has to be async..

I also am struggling now with a more complex structure and in between different files. That's why I made this small test code.

edit: i forgot to say that I'm working with node.js.. sry. I don't have a clear question. Just thought it could be helpful with the discussion..

```
    function helper(callback){

    function doA(){

        var array = ["a ","b ","c "];

        var alphabet = "";

        return new Promise(function (resolve, reject) {

            array.forEach(function(key,index){

            alphabet += key;

                if (index == array.length - 1){

                    resolve(alphabet);

                };

            });

        });

    };

    function doB(){

        var a = "well done!";

        return a;

    };

    async function make() {

        var alphabet = await doA();
        var appreciate = doB();

        callback(alphabet+appreciate);

    };

    make();

};

helper(function(message){

    console.log(message);

});

```