If we use customdata search currently, using dict sytax, this can result in urlencoding errors (I believe). We should debug this.
account = application.accounts.search({'customData': 'favoriteColor=true'})
The issue here (I believe) is that this generates a query string that looks like:
/v1/application/xxx/accounts?q=customData.favoriteColor=true
Which is an invalid URL.
I think the solution here is to debug the urlencoding functionality when this happens.