Water dispenser not working correctly

Water dispenser will fill a glass of water 1/2 full then start chattering the lines, has a new filter. ice maker works fine. If you remove filter then reinstall it will fill a glass then start chattering again, water supply valve is open fully. thanks for any help