andstatus: Exception in MyAccountBuilder

I have now provided the whoami endpoint, then I come across this error:

11-24 13:56:29.464 V/AccountData133: new rdf-pub-admin@dev.rdf-pub.org/ActivityPub from jso: {
  "account": "rdf-pub-admin@dev.rdf-pub.org\/ActivityPub",
  "origin_name": "ActivityPub",
  "username": "rdf-pub-admin",
  "unique_name": "rdf-pub-admin@dev.rdf-pub.org",
  "credentials_verified": "1",
  "oauth": "true",
  "user_id": "0",
  "is_syncable": "true",
  "sync_automatically": "true",
  "fetch_frequency": "0",
  "myversion": "48",
  "order": "1",
  "user_token": "*******",
  "user_secret": "{\"access_token\":\"*****",\"expires_in\":300,\"refresh_expires_in\":1800,\"refresh_token\":\"*****",\"token_type\":\"Bearer\",\"not-before-policy\":1684133009,\"session_state\":\"******",\"scope\":\"read follow write\"}"
}
11-24 13:56:29.478 V/MyQuery: actorwebfinger_idToId; 0+rdf-pub-admin@dev.rdf-pub.org -> 0
11-24 13:56:29.488 D/OAuthClientKeys: Loaded OAuthClientKeysDynamic-17-dev.rdf-pub.org; Keys present
11-24 13:56:29.497 I/MyAccountBuilder:  Load failed: Invalid account; MyAccount: {(invalid) accountName:rdf-pub-admin@dev.rdf-pub.org/ActivityPub,Actor: {origin:ActivityPub, id: 0, webFingerId: rdf-pub-admin@dev.rdf-pub.org, username: rdf-pub-admin},not persistent,OAuth,access:NEVER,credentialsPresent,syncable,syncauto} 
java.lang.Exception
	at org.andstatus.app.util.MyLog.getCurrentStackTrace(MyLog.kt:331)
	at org.andstatus.app.account.MyAccountBuilder.logLoadResult(MyAccountBuilder.kt:73)
	at org.andstatus.app.account.MyAccountBuilder.access$logLoadResult(MyAccountBuilder.kt:42)
	at org.andstatus.app.account.MyAccountBuilder$Companion.loadFromAccountData(MyAccountBuilder.kt:377)
	at org.andstatus.app.account.MyAccountBuilder$Companion$fromJsonString$1.invoke(MyAccountBuilder.kt:369)
	at org.andstatus.app.account.MyAccountBuilder$Companion$fromJsonString$1.invoke(MyAccountBuilder.kt:366)
	at org.andstatus.app.account.MyAccountBuilder$Companion.fromJsonString$lambda$0(MyAccountBuilder.kt:366)
	at org.andstatus.app.account.MyAccountBuilder$Companion.$r8$lambda$GICBHO9t4YawFEbeJv85N1prV5Y(Unknown Source:0)
	at org.andstatus.app.account.MyAccountBuilder$Companion$$ExternalSyntheticLambda0.apply(Unknown Source:2)
	at io.vavr.control.Try.map(Try.java:416)
	at org.andstatus.app.account.MyAccountBuilder$Companion.fromJsonString(MyAccountBuilder.kt:366)
	at org.andstatus.app.account.StateOfAccountChangeProcess.<init>(StateOfAccountChangeProcess.kt:74)
	at org.andstatus.app.account.StateOfAccountChangeProcess.<init>(Unknown Source:0)
	at org.andstatus.app.account.StateOfAccountChangeProcess$Companion.fromStoredState(StateOfAccountChangeProcess.kt:166)
	at org.andstatus.app.account.AccountSettingsActivity.restoreState(AccountSettingsActivity.kt:203)
	at org.andstatus.app.account.AccountSettingsActivity.onCreate(AccountSettingsActivity.kt:167)
	at android.app.Activity.performCreate(Activity.java:8342)
	at android.app.Activity.performCreate(Activity.java:8321)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1421)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782)
	at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5783)
	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5674)
	at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:71)
	at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:138)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7924)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

About this issue

  • Original URL
  • State: open
  • Created 7 months ago
  • Comments: 28 (9 by maintainers)

Most upvoted comments

but… i’m thinking about making the preferred username independent of the oauth2 server. Because if different oauth2 servers are offered for authentication, the preferred username from the JWToken is no longer unique. The same with the userId, which in rdf-pub is currently the id of the oauth2 server. it is possible that I will introduce a mapping here too.

Thanks for supporting me and rdf-pub. I’m

I will not be available from 14.12. to 17.12.

Hello @naturzukunft ! I see my IP didn’t change yet.

^ tomorrow he will take a look on it.