HSG and pain meds

Ashley • TTC via IVF after a blighted ovum, ectopic, and husbands cancer.
I had an ectopic in June and had surgery to remove it (kept my tube). I am going for an HSG this morning and I was told to take pain meds before as it can be painful. I'm wondering if that is necessary? I don't like the way pills make me feel. How was your experience with an HSG?