Bug: 401 error when making API calls to production database