Android app crashes while trying to authenticate with access token got from vimeo developer dashboard. Below is the stacktrace
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- authentication, mobile
Research direction
Start with PlayApp.kt:27 and read the stack trace into NoOpAuthenticatorImpl.kt:23 and :85. Check how VimeoApiConfiguration.Builder(accessToken) interacts with Authenticator.authenticateWithClientCredentials; done means the fixed-token authentication behavior is understood and the reported crash path has a clear resolution.
Written by the indexing model from the issue text.
Description
-
Stacktrace
Caused by: java.lang.IllegalStateException: Authentication is not supported when using a fixed access token
at com.vimeo.networking2.internal.NoOpAuthenticatorImpl.reject(NoOpAuthenticatorImpl.kt:85)
at com.vimeo.networking2.internal.NoOpAuthenticatorImpl.authenticateWithClientCredentials(NoOpAuthenticatorImpl.kt:23)
at com.radio.playbackspeeddemo.PlayApp.onCreate(PlayApp.kt:27)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1190)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6850)
- Code causing issue:
val accessToken: String = "token here"
var vimeoApiConfiguration: VimeoApiConfiguration? = null
var vimeoApiClient: VimeoApiClient? = null
vimeoApiConfiguration = VimeoApiConfiguration.Builder(accessToken)
.build()
val authenticator = Authenticator(vimeoApiConfiguration!!)
vimeoApiClient = VimeoApiClient(vimeoApiConfiguration!!, authenticator)
authenticator.authenticateWithClientCredentials(
vimeoCallback(
onSuccess = {
Log.e("vimeo success", "vimeo success")
},
onError = {
Log.e("vimeo failed", "vimeo failed")
}
)
)
- Dominant language
- Kotlin
- Stars
- 128
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vimeo/vimeo-networking-java
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
vimeo/vimeo-networking-java#633 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
vimeo/vimeo-networking-java#632 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
vimeo/vimeo-networking-java#613 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
vimeo/vimeo-networking-java#579 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
vimeo/vimeo-networking-java#572 · 1 reaction ·
All issues in vimeo/vimeo-networking-java
Similar issues
-
bug need-device
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
ramesh130/superplayer#495 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
maxrave-dev/SimpMusic#2649 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
PimpinPumpkin/Vela#778 ·
Maintainers usually reply within 1 day
-
M1 manhwa listOpenBug Domain changed
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
keiyoushi/extensions-source#19882 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days