Question Details

Answered
Error While Using Scope.OPENID_CONNECT and Scope.OC_EMAIL

Hi buddies !!!! I have been succesfully logged in while using Scope.PROFILE and getting username and displayPicture. But, I have been getting these two errors if using Scope.ID_CONNECT, Scope.OC_EMAIL.

1st Error :

E/IdTokenParser: failed to parse IdToken: eyJraWQiOiI4Y2NlOGYwNzRlZDAyMzc4ZmE4MDcwNTY0NDgxMmEyNjcyZWQ3NzUxZjViOTA2OTg5MzU1NzczNGYyMWJmNzI4IiwiYWxnIjoiRVMyNTYifQ.eyJpc3MiOiJodHRwczovL2FjY2Vzcy5saW5lLm1lIiwic3ViIjoiVTRjMWJmOWE4YjZmMmIyNDZhMmRmMzJjNGQ3MTNiODgxIiwiYXVkIjoiMTYzNzM2NTUxMSIsImV4cCI6MTU0OTE3NjYxMywiaWF0IjoxNTQ5MTczMDEzLCJub25jZSI6Ii1KQW82bW1wWnNVIiwibmFtZSI6Ik5hdmVlbiBLYWRpeWFsYSIsInBpY3R1cmUiOiJodHRwczovL3Byb2ZpbGUubGluZS1zY2RuLm5ldC8waEp5TG95b3h5RlZaeEZqOEU1ZkpxQVUxVEd6c0dPQk1lQ1hnT1pBUVVTVEplSndCVEhuRmVORnhESEdCZGRGWUJTbmNQWWxCQ0h6TU0iLCJlbWFpbCI6InZlbmthdG5hdmVlbjQxOEBnbWFpbC5jb20ifQ.KHAo-0p-xX79gV-Z5YA8XwHKSbzqURzdt8okveMuHcyhE9baxsxtzKXQmKZ7kKWq3RI5xRzquDgn_ehb9X5OtQ java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.Uri$Builder android.net.Uri.buildUpon()' on a null object reference

**2nd Error : **

E/ERROR: Login FAILED! LineApiError{httpResponseCode=200, message='java.io.IOException: org.json.JSONException: Attempt to invoke virtual method 'android.net.Uri$Builder android.net.Uri.buildUpon()' on a null object reference

could you please help me to resolve this....

0
Profile picture
Naveen Kadiyala

Answers

1
Profile picture
Matthew Tanudjaja
Posted: 2 months ago
Edited: 2 months ago
  1. You need to use channel information from a WEB type channel (i.e. account for LINE Login instead of Messaging API)
  2. You need to apply to get a permission to access user's email by following this guide: https://developers.line.biz/en/docs/line-login/web/integrate-line-login/#applying-for-email-permission
Are you sure? question.vm