China’s exports unexpectedly contracted in October as global demand failed to offset the deepening slump in shipments to the US, dealing a blow to an economy already slowing amid sluggish consumer spending and investment at home.

Exports fell for the first time in eight months, dropping 1.1% from a year earlier, according to official data released Friday. Shipments to all nations except the US rose 3.1%, not enough to compensate for the more than 25% decline to America.