parse response before checking length