Jack Sowerby struck a last-minute winner at Victory Park as Fleetwood beat Vanarama National League North side Chorley 2-1 in the FA Cup.
Marcus Carver gave the non-league outfit the lead just before the hour mark but goals from Devante Cole and Sowerby spared Fleetwood's blushes after Lewie Coyle had been sent off for the visitors.
The game did not spark into life until the Magpies opened the scoring when Josh O'Keefe and Carver combined to punish a poor clearance from Fleetwood defender Ashley Eastham.
The bumper crowd were dreaming of a second-round clash with Hereford when Coyle saw red for a late challenge on Jake Cottrell.
But a string of substitutes helped rescue Uwe Rosler's side as Wesley Burns' fine cross found Cole, who looped his header into the net with 13 minutes remaining.
Sowerby then completed the comeback as he flicked his shot beyond Oliver Byrne in stoppage time.
English FA Cup News
FA Cup: Merseyside Derby, Wolves vs. Manchester United highlight third-round matches
Liverpool host Everton in the third round of the FA Cup and Manchester United travel to Wolves as the Premier League's teams enter the competition.
Hillsborough tragedy: David Duckenfield found not guilty of gross negligence manslaughter in retrial
A jury in the trial of former Chief Superintendent David Duckenfield has failed to reach a verdict on a charge of gross negligence manslaughter.
Hillsborough tragedy: Chief to face retrial
David Duckenfield, the match commander at the 1989 Hillsborough disaster, will face retrial on a charge of gross negligence manslaughter.
The Daniel James goal that put clubs on notice
As Daniel James completes his move to Manchester United from Swansea, relive the FA Cup goal against Brentford that put him on everyone's radar.
Kompany issues heartfelt goodbye to Man City fans
Vincent Kompany says he's given everything to Manchester City as he bids farewell to the supporters at the team's victory parade.
Nicol: FA Cup final totally changed with Pereyra's missed chance
ESPN FC's Steve Nicol feels the FA Cup final was over once Roberto Pereyra missed his golden opportunity early on vs. Man City.