Conor Gallagher scored the first goals of Patrick Vieira's Crystal Palace reign as West Ham's winning start to the season came to a frustrating end in a belting London derby.
The Hammers were on course to make it three wins out of three when Spaniard Pablo Fornals scored in the 39th minute after playing a slick one-two with forward Michail Antonio.
But Palace were much better after half-time and levelled when midfielder Gallagher, who is on a season-long loan from Chelsea, found the target.
In-form Antonio thought he had won it when he rifled past Vicente Guaita for his fourth goal of the campaign - and his 50th in the Premier League.