throw exception when there's an error in the request
pass client_id when doing request without authentication