ERROR with code EAUTH and and command API

ERROR with code EAUTH and and command API

When i run my code locally, i don't get any error whatsoever but as i uploaded the code online and try testing using postman it flags the error below

{
    "error": {
        "code": "EAUTH",
        "command": "API"
    }
}