RIO DE JANEIRO — For more than a year, President Jair Bolsonaro of Brazil had warned that he might not accept a loss in last month’s presidential election. He lost. He reluctantly agreed to begin the transition of power — while his allies inspected the election results for evidence of anything amiss.

This week, his campaign was successful to It’s a small bug in the software that was causing problems with the voting machines. On Tuesday, the campaign filed an application to Effectively, Mr. Bolsonaro’s Vote in favor of declaring that the bug should invalidate votes from approximately 60 percent of voting machines.

Of the remaining votes, Mr. Bolsonaro would win 51 percent, the campaign said, making him the victor instead of the leftist former president who defeated him, Luiz Inácio Lula da Silva.

It was a Hail Mary request. Independent experts confirmed that the bug did no harm to the integrity and validity of the vote. The bug was removed late Wednesday night. Brazil’s Elections chief denied the complaint and fined the three parties involved in it for more than $4.3million.

Alexandre de Moraes – Supreme Court Justice who runs Brazil’s election agency and who is now one of Mr. Bolsonaro’s most prominent political adversaries, said in a decision Wednesday night that the campaign’s arguments were “absolutely false” That is all. to Overturning the election was “ostensibly an attack on the democratic rule of law and carried out recklessly, with the aim of encouraging criminal and anti-democratic movements.”

The campaign had been run by Mr. Moraes for 24 hours before. to explain why it had only questioned votes from the election’s second round, in which Mr. Bolsonaro lost, and not the first round, in which his political party won the most seats in Congress using the same voting machines. After Mr. Bolsonaro’s On Wednesday, the party stated that it didn’t have any information about the first round. Mr. Moraes dismissed his complaint.

The elections chief Mr. Moraes has been named one of Brazil’s Bolsonaro and his allies criticize the election system. Mr. Moraes’s aggressive response to He has called it attacks on Brazil’s Democracies, including his orders to social networks to The Brazilian right has been widely critical of the decision to take down thousands upon thousands of posts.

On short notice on Wednesday afternoon, hours before Mr. Moraes’s decision, Mr. Bolsonaro’s Reporters were called by the right-wing Liberal Party to a hotel in Brasília, the nation’s capital, to Please explain your findings.

Valdemar Costa Neto, the party’s president, said the software bug demanded a review of the election results. “There can’t be any doubts about the vote,” He stated. “If this is a stain on our democracy, we have to solve it now.”

Mr. Moraes on Wednesday also ordered an investigation into Mr. Costa Neto and the official who oversaw the party’s audit.

Mr. Bolsonaro’s campaign causes an error on a document made by some older voting machines. This error causes an error in the associated identification number to The voting machine. Officials from the Liberal Party claimed that it was difficult to vote. to Verify the votes.

Computer security experts who are independent and have studied Brazil’s voting machines and who reviewed the campaign’s findings said that was wrong. They stated that the bug is still present, but it does not affect the integrity of the results. There are many other ways to do it. to Identify the voting machines, and even the exact documents that are causing the error.

“They pointed out a bug that needs to be corrected. That’s great, and it’s actually easy to correct,” said Marcos Simplício, a cybersecurity researcher at the University of São Paulo. But he said that the campaign’s suggestion that votes should be nullified is like arguing a car is totaled because of a scratch on the door.

“Try to convince your insurance company of that,” He stated. “It’s nonsense. Complete nonsense.”