Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keycloak authentication token does not get refreshed #245

Closed
claudiofahey opened this issue Apr 21, 2021 · 0 comments · Fixed by #250 or #251
Closed

Keycloak authentication token does not get refreshed #245

claudiofahey opened this issue Apr 21, 2021 · 0 comments · Fixed by #250 or #251
Assignees

Comments

@claudiofahey
Copy link

Problem description
An application that uses the byte stream reader to read from Pravega with Keycloak authentication works well for 5 minutes and then it panics. This is likely caused by not refreshing the token.

thread 'tokio-runtime-worker' panicked at 'get endpoint for async segment reader: RetryError { error: OperationError { can_retry: false, operation: "get_endpoint", error_msg: "status: Unauthenticated, message: \"\", details: [], metadata: MetadataMap { headers: {\"content-type\": \"application/grpc\", \"authorization\": \"Bearer snipped\"} }" }, total_delay: 0ns, tries: 1 }', /mnt/home/faheyc/nautilus/gstreamer/gstreamer-pravega/pravega-client-rust/src/segment_reader.rs:229:30
stack backtrace:
   0: rust_begin_unwind
             at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/core/src/panicking.rs:92:14
   2: core::option::expect_none_failed
             at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/core/src/option.rs:1300:5
   3: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   4: <tokio::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
   5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   6: std::panicking::try
   7: tokio::runtime::task::harness::poll_future
   8: tokio::runtime::task::harness::Harness<T,S>::poll
   9: std::thread::local::LocalKey<T>::with
  10: tokio::runtime::thread_pool::worker::Context::run_task
  11: tokio::runtime::thread_pool::worker::Context::run
  12: tokio::macros::scoped_tls::ScopedKey<T>::set
  13: tokio::runtime::thread_pool::worker::run
  14: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
  15: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
  16: tokio::runtime::task::harness::Harness<T,S>::poll
  17: tokio::runtime::blocking::pool::Inner::run

Problem location
Keycloak client.

Suggestions for an improvement
None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants