Needed to roll back. Need to add error handler for non json responses.