Certified GKH Gardening Expert
Those appear to be green beans! That can happen when there is a little too much nitrogen in the soil and not enough phosphorus and potassium. Additionally, hot weather can cause green beans to do what you are seeing there. They do best in coolers weather.
Here is an article that will help you to get the most out of your green bean plant: https://www.gardeningknowhow.com/edible/vegetables/beans/tips-for-growing-beans.htm