Start with the rail diameter
Measure across the outside of the rack tube where the upper hooks will sit. Ask for the pannier model and a close-up of its mounting hardware. Some hooks use removable inserts. ORTLIEB’s standard Quick-Lock 2.1 hooks, for example, have inserts for 8, 10 and 12 mm tubes. Check the manual for your exact system rather than assuming those sizes apply.
Test both attachment points
Fit the empty bag to the stationary bike. Check that the upper hooks close completely and that neither insert is missing. The lower anti-sway hook needs a suitable rack stay to engage. If the bag hangs from the top rail alone, it can swing sideways. Replace any cracked hook before riding.
Check the bag from the side
Make sure the bag and loose straps stay away from the tyre and spokes. While the bike is stationary, check where your heel comes closest to the bag during pedalling. If your heel catches the bag or the lower hook cannot reach a stay, the right upper inserts will not fix the fit.