By 1497 John I Albert managed to gather 80,000 men and was preparing for the expedition when Ștefan invaded Ruthenia and pillaged it.
The plans for the Ottoman invasion were put aside and John I Albert went against Moldavia instead.

The campaign started on the wrong foot, with John I Albert entering Moldavia at Hotin and - despite sound advice to the contrary - deciding not to take the fortress, but to go straight for the capital city of Suceava.
Later, this would prove a fatal mistake: by this time Stephen's scorched earth tactics were already common knowledge, as he had used it successfully several times before against the Hungarians and the Ottomans; yet John I Albert failed to secure his communication lines with Poland.
Supply from home proved impossible and the Poles were forced to live off an already depleted land.

After the abortive siege of Suceava (September 26 - October 16) - with the taking of the recently rebuilt and reinforced fortress nowhere in sight (despite having used heavy siege artillery on its walls), and facing famine, disease, bad weather plus the prospect of coming winter - John I Albert was compelled to lift the siege.
After some negotiations, the Poles left Suceava on October 19; apparently Stephen had granted them safe passage on the condition that they return to Poland on the same way they had taken when marching on Suceava and warning that he will not allow another part of his country to be devastated by the Polish troops in their retreat.

John I Albert formally accepted this condition; however, in practice, he decided to retreat on a different and unfamiliar route through Bukovina to Sniatyn, instead of taking the route to Kamieniec Podolski (Camenița) through Hotin (Chocim), knowing fully well that abiding by Stephen's condition would have spelled death for the exhausted and starved Polish troops, as they already had devastated that region on their way to Suceava, in an attempt to keep the army supplied.

Breaking the arrangement previously agreed upon proved to be the fateful mistake that Stephen was waiting for all along: on October 26 he ambushed the Poles while they were marching on a narrow road passing through a thickly wooded area known as The Cosmin Forest.
Thus, John I Albert was unable to deploy his forces, rendering the Polish heavy cavalry completely useless.
The several phases of battle lasted for three days, with Stephen routing the invading army, which was forced to flee in disarray, harassed all the way by the forces of the prince.
At the same time a Moldavian contingent intercepted on October 29 a hastily assembled Polish relief force and completely annihilated it at Lențești.

However, once back in open space, the Poles were able again to take advantage of their heavy cavalry, and that part of the remaining troops which managed to retain a measure of order and discipline succeeded in crossing back into Poland - despite Stephen's last effort to engage the remnants of the king's army in a battle of annihilation when they were trying to ford the Prut river at Cernăuți.
By 1497 John I Albert managed to gather 80,000 men and was preparing for the expedition when Ștefan invaded Ruthenia and pillaged it. The plans for the Ottoman invasion were put aside and John I Albert went against Moldavia instead.
The campaign started on the wrong foot, with John I Albert entering Moldavia at Hotin and - despite sound advice to the contrary - deciding not to take the fortress, but to go straight for the capital city of Suceava. Later, this would prove a fatal mistake: by this time Stephen's scorched earth tactics were already common knowledge, as he had used it successfully several times before against the Hungarians and the Ottomans; yet John I Albert failed to secure his communication lines with Poland. Supply from home proved impossible and the Poles were forced to live off an already depleted land.
After the abortive siege of Suceava (September 26 - October 16) - with the taking of the recently rebuilt and reinforced fortress nowhere in sight (despite having used heavy siege artillery on its walls), and facing famine, disease, bad weather plus the prospect of coming winter - John I Albert was compelled to lift the siege. After some negotiations, the Poles left Suceava on October 19; apparently Stephen had granted them safe passage on the condition that they return to Poland on the same way they had taken when marching on Suceava and warning that he will not allow another part of his country to be devastated by the Polish troops in their retreat.
John I Albert formally accepted this condition; however, in practice, he decided to retreat on a different and unfamiliar route through Bukovina to Sniatyn, instead of taking the route to Kamieniec Podolski (Camenița) through Hotin (Chocim), knowing fully well that abiding by Stephen's condition would have spelled death for the exhausted and starved Polish troops, as they already had devastated that region on their way to Suceava, in an attempt to keep the army supplied.
Breaking the arrangement previously agreed upon proved to be the fateful mistake that Stephen was waiting for all along: on October 26 he ambushed the Poles while they were marching on a narrow road passing through a thickly wooded area known as The Cosmin Forest. Thus, John I Albert was unable to deploy his forces, rendering the Polish heavy cavalry completely useless. The several phases of battle lasted for three days, with Stephen routing the invading army, which was forced to flee in disarray, harassed all the way by the forces of the prince. At the same time a Moldavian contingent intercepted on October 29 a hastily assembled Polish relief force and completely annihilated it at Lențești.
However, once back in open space, the Poles were able again to take advantage of their heavy cavalry, and that part of the remaining troops which managed to retain a measure of order and discipline succeeded in crossing back into Poland - despite Stephen's last effort to engage the remnants of the king's army in a battle of annihilation when they were trying to ford the Prut river at Cernăuți.
Battle of the Cosmin Forest