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: 
If you are writing a Chrome Extension and you get this error for your code at root, you can fix it using the following "workaround":

```
async function run() {
    // Your async code here
    const beers = await fetch("https://api.punkapi.com/v2/beers");
}

run();

```

Basically you have to wrap your async code in an `async function` and then call the function without awaiting it.
"await is only valid in async function"

But why? 'await' explicitly turns an async call into a synchronous call, and therefore the caller cannot be async (or asyncable) - at least, not because of the call being made at 'await'.