DESCRIPTION
This error you must be getting while making query developer console OR query using api. It’s because of fact that you don’t have permission to access org using API.
SOLUTION
If Issue is taking place in developer console
Quick way to fix it to give permission “Use any API client” using profile or permission set.

NOTE: If you do not find “Use any API client” then try to enable the permission “API Enabled”.
If you are using connected App
This is happening because of connected app is not configured correctly.
On ‘API (Enable OAuth Settings)‘ panel, move ‘Access and manage your data (api)‘ option from left to right of Selected OAuth Scopes field and then save the setting.

TIP: Wait for few minute and then try. It should work.

Excellent post. I was checking continuously this blog and I am impressed!
Extremely useful information. I care for such information a
lot. I wwas looking for this certain informatikon for a very
long time.Thank you and goo luck.
Hi, just wanted to say, I enjoyed this article. It was inspiring.
Keep on posting!
whoah this blog is great i love reading your posts. Stay
up the great work! You already know, a lot of persons are
hunting round for this info, you can aid them greatly.
This paragraph will help the internet users for setting up new weblog or even a weblog from start to end.
hey there and thank you for your information – I have certainly picked up anything new from right here.
I did however expertise a few technical issues using this site, as I experienced to reload the web
site many times previous to I could get it to load
properly. I had been wondering if your web host is OK? Not that
I’m complaining, but slow loading instances times will sometimes affect your placement in google and can damage
your high-quality score if advertising and marketing with Adwords.
Anyway I’m adding this RSS to my email and could look out for a lot more of your respective exciting content.
Make sure you update this again very soon.
I was able to find good advice from your blog articles.
Truly no matter if someone doesn’t understand then its up to other viewers that they will assist, so here it
happens.
I got this web page from my buddy who shared with me regarding this site and now this time I am browsing this website and reading very informative content here.
I enjo reading through your website. Thanks!
Very good post! We will be linking to this great
content on our website.Keep uup the great writing!
Hello! Do you use Twitter? I’d like to follow you if that would
be okay. I’m definitely enjoying your blog and look
forward too new articles.
Hi there to every body, it’s my first go to see of thiss
webpage; this webpage contains amazing and really excellent data in support of readers.
I think this iss one of the most important inftormation for me.
And i am glad reading your article. But wanna remark on few
general things, The webb site style is perfect, the articcles is really great!
Hi there to every body, it’s my first go to see of
this webpage; this webpage contains amazing and really excellent data inn support
of readers.
Nice blog here! Also yoour web site a lot up very fast!
I dedire mmy site loaded up as quickly as yours…
It’s not mmy first time to go too see this web
page, i am visiting this web site very often and take good facts from here.
I like it whenever people come together and share thoughts.Great website, continue the good work!
Hello everyone, it’s my first visit at this website, and piecce of writing is enuinely
fruitful designed for me, keep up posting such articles or reviews.
Very good post! We wiill be linking tto this great content
on our website.Keepp up the great writing!
Very good info. Lucky me I discovered yohr blog by accident.
I have book-marked it for later!