As a historic heat wave hits the West, shattering records and straining California’s electricity grid, thousands of people were left without power Wednesday.

Tuesday, the state narrowly avoided rolling blackouts as California officials and energy authorities urged residents to reduce electricity use as the grid struggled against record demand.

Still, residents across Northern California were in the dark Tuesday and into Wednesday morning, according to Pacific Gas & Electric. The incident was spurred due to a miscommunication and led to power being cut by mistake to customers in several cities. 

The state issued its eigth consecutive day with a “flex alert” Wednesday, requesting residents and businesses to conserve power between 4 p.m. and 9 p.m. to prevent against any blackouts. 

PAST COVERAGE:Rolling blackouts called off amid ‘extraordinary heat event’ in California

Record-breaking temps to continue

The relentless heat continued Wednesday, reaching the upper 90s and triple digits with temperatures in the 110s possible for the “interior valleys of California,” according to the National Weather Service.

“These dangerously hot temperatures will likely break dozens of additional daily and possibly monthly records,” the weather service said.

California’s state capital of Sacramento hit an all-time high Tuesday of 116 degrees, breaking a 97-year-old record.

Power cut by mistake in Northern California 

Miscommunication led utilities to mistakenly cut power to customers in several California cities during unprecedented demand on energy supplies, operators of the state’s electricity grid acknowledged Wednesday.

Confusion occurred Tuesday afternoon between several Northern California utilities and the California Independent System Operator as the grid was perilously close to running out of energy amid record-breaking temperatures, said Elliot Mainzer, president and CEO of Cal-ISO.