There is this annoying bug where I can't properly trade with villagers. The trading tab opens and closes in an instant, without letting me do anything, it goes from villager to villager, seemingly at random. My connection is great, so is my system right now, it's not due to lag nor bad connection. It seems to be something about the game. Is anyone else getting this issue?, I would like to know more about why this is happening and if some developer at Mojang can tell me what's going on.
I would upload a photo but it's just that, I click the villager to trade, the tab opens and closes itself in an instant.
Related issues
duplicates
Comments


I found out how to fix it! I had this same problem and had no clue what was causing it. But on my realm, only a select few villagers worked. Also, some of their tables that the use to get their professions were lying around and to me, they didn't look ascetically appealing so I broke them. I then tried to trade with the villagers tied to those workstations and the bug happened to them. It turns out that they now need the work stations that they use for themselves in order to properly work now. Hope this helped because it helped me a lot when I found it out!

Duplicate of MC-154201 and it has been resolved for a future version of 1.14
Happened to me too, stopped happening once I gave the villager the tag NoAI:1. Don't know if you are talking about a villager summoned using /summon but I am.
Edit: command to replicate
/summon minecraft:villager ~ ~ ~ {VillagerData:{level:5,profession:"minecraft:weaponsmith",type:"minecraft:savanna"},Offers:{Recipes:[{rewardExp:0b,maxUses:9999999,uses:1,xp:0,priceMultiplier:1f,buy:{id:"minecraft:iron_axe",Count:1b},buyB:{id:"minecraft:dirt",Count:1b},sell:{id:"minecraft:iron_sword",Count:1b}}]}}