It could be you're not requesting access to any custom scope or a scope that does not exist (in my case I misspelled it). These answers answer 1, answer 2 were very helpful