I was having the same issue .. By changing the scope to whatever solutions are given here didn't help me.. The solution I found that worked for me was to replace the profile url ...
https://api.linkedin.com/v2/me
Replace the above profileURL With:
https://api.linkedin.com/v2/userinfo
You will be able to get the userdata from this. Thank you!