A widespread system outage hit Starbucks locations across Canada and the U.S. Friday night, prompting some stores to give away free coffee and drinks, according to a flood of social media posts.

Starbucks confirmed the outage in a statement on its website and said it’s “actively working” to solve the problem.

Company spokesman Jim Olson said the computer glitch disrupted sales at 1,000 stores in Canada and 7,000 in the United States.

Starbucks also said late Friday that its stores that had not already closed for the evening would be closing early.

“The outage was caused by a failure during a daily system refresh,” the company said. “We apologize to our customers for any inconvenience or confusion and will update this statement once systems are back online.”

The outage was dubbed #thefrappening on Twitter, with many happy customers tweeting about receiving free coffee, lattes and other beverages.

Others were disappointed to find their neighbourhood Starbucks closed.

With files from The Associated Press