Certified GKH Gardening Expert
It could be that your compost has too much nitrogen. Beans do not need a lot of nitrogen. Too much nitrogen fertilizer or manure will prevent pods from setting and focuses more on producing foliage growth. Heat can also be a factor, making pollination more difficult.