error:
data: {
message: 'Authorization Failure. Have you tried:',
'Tip 1': 'Ensure you are sending Authorization and Client-ID as headers.',
'Tip 2': "Ensure Authorization value starts with 'Bearer ', including the space",
'Tip 3': 'Ensure Authorization value ends with the App Access Token you generated, NOT your Client Secret.',
Docs: 'https://api-docs.igdb.com/#authentication',
Discord: 'https://discord.gg/igdb'
}
code:
error: data: { message: 'Authorization Failure. Have you tried:', 'Tip 1': 'Ensure you are sending Authorization and Client-ID as headers.', 'Tip 2': "Ensure Authorization value starts with 'Bearer ', including the space", 'Tip 3': 'Ensure Authorization value ends with the App Access Token you generated, NOT your Client Secret.', Docs: 'https://api-docs.igdb.com/#authentication', Discord: 'https://discord.gg/igdb' }
the headers show this: _header: 'POST /v4/games HTTP/1.1\r\n' + 'Accept: application/json\r\n' + 'Content-Type: application/x-www-form-urlencoded\r\n' + 'client-id: my client id' + 'authorization: Bearer my_client_secret' + 'x-user-agent: igdb-api-node v5.0.2\r\n' + 'User-Agent: axios/0.21.4\r\n' + 'Content-Length: 101\r\n' + 'Host: api.igdb.com\r\n' + 'Connection: keep-alive\r\n' + '\r\n',