No usable pokeballs found! [Endless loop]
Expected Behavior
Utilize whatever balls are remaining in inventory.
Actual Behavior
When Pokeballs are depleted, it will not switch to Great or Ultra balls and will get stuck in an endless loop.
Your config.json (remove your credentials and any other private info)
"type": "RecycleItems",
"config": {
"item_filter": {
"Pokeball": { "keep" : 100 },
"Greatball": { "keep" : 100 },
"Ultraball": { "keep" : 200 },
"Potion": { "keep" : 0 },
"Super Potion": { "keep" : 0 },
"Hyper Potion": { "keep" : 0 },
"Max Potion": { "keep" : 20 },
"Revive": { "keep" : 0 },
"Razz Berry": { "keep" : 100 }
Steps to Reproduce
Run out of Pokeballs, while having other balls in inventory.
Other Information
OS: Mac OSX Git Commit: 8b5af8d766ac161be926932b05e3fc785a33661d Python Version: Python 2.7.10

Is your VIP set to true, and are you positive that you have great balls?
Encountered this same error with 100 ultra balls in my bag.
Edit: fix is here. The maximum available pokeball is only set to ultraball when the pokemon is designated as a VIP. If you're heavy on ultraballs and nothing else, you'll see the infinite loop.
VIP is enabled, but shouldn't matter for this. I also [now] have 0 Greatballs and 120 Ultraballs. Should default to using Ultraballs- not sure why you would want it to just loop.

When VIP is enabled the maximum the bot will use is a greatball currently, turning off VIP should allow it to use ultraballs
(It will save ultraballs for VIP Pokemon only)
@shoelsch Thanks for your help :)