BINGHAMTON, N.Y. — The Binghamton Mets ruined Mike Augliera’s return and ended Mookie Betts’ hitting streak Friday night.

The Mets used three unearned runs in the fourth inning to take the lead on the way to a 5-1 Eastern League victory.

While protecting that lead, Binghamton also ended a 17-game hitting streak by Betts, who started the night leading all minor league batters with a .430 average. The game ended when Betts flew to right against Jon Velasquez with two on.

Augliera, who led America East in strikeouts in 2012 while at Binghamton University, gave up only six hits and two earned runs in seven innings. A sloppy fourth, however, led to him taking the loss and falling to 2-2.

Binghamton broke a 1-1 tie in the fourth on two walks, two infield errors and an RBI single by Kyle Johnson.

Augliera did some of the damage as a fielder, making a wild throw when trying to get a force at second to start a possible double play. Although he had to hesitate while waiting for someone to cover second, Augliera took the blame.

“I just rushed the throw,” Augliera said. “I should have waited for him. That’s on me 100 percent.”

Betts went 0 for 4 with a walk. While one streak ended, the walk allowed Betts to extend others.

Betts has been on base in all 23 of his games in his first season at Double-A. Betts also reached in his last 30 regular-season games last season and has been on in 58 straight, counting five Carolina League playoff games last season.

A rainout set up Augliera to make a start in Binghamton while students and baseball players were still in town. He met with some of those players before the game and took the mound to cheers.

Augliera, a third-year pro from Old Bridge, N.J., had an outstanding career at Binghamton University. He earned all-conference honors and set school records with 23 wins and 13 complete games.

During his senior year with the Bearcats, Augliera got one chance to pitch at NYSEG Stadium, where he occasionally attended Eastern League games. He made it through one bad inning to beat Maryland-Baltimore County, but didn’t expect to take the stadium mound again.

“It was my dream to play professional baseball but I never really thought I would have a chance,” Augliera said. “I’ve been blessed along the way. I’ve gotten a lot of support and help throughout.”

Augliera pitched for Lowell in the New York-Penn League after his senior season and won nine games at Salem last year, his first full professional season. He has a 3.48 ERA through five starts with the Sea Dogs.

Fielding his position was the toughest part of Augliera’s night. The first hit he allowed was on a line drive off his right shoulder.

Deven Marrero and Travis Shaw had back-to-back doubles to give the Sea Dogs a 1-0 lead in the first. Shaw also doubled his next time up.