When I want to get authorization data I get this error:
Error: listen EADDRINUSE: address already in use :::3200
This port is not busy. The error occurs only when it starts executing this request.
The request is executed at the address: http://localhost:3200/api/run
What am I doing wrong?
const path = require('path');
const { authenticate } = require('@google-cloud/local-auth');
module.exports.runSample = async function () {
const auth = await authenticate({
keyfilePath: path.join(__dirname, 'credentials.json'),
scopes: 'https://www.googleapis.com/auth/forms.responses.readonly',
});
console.log(auth)
}
credentials.json:
{
"web": {
...
"redirect_uris": [
"http://localhost:3200/oauth2callback/"
]
}
}