handle basic_auth json being non-existant