providers: handle invalid responses