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

Error : You need to call init() on TrueTime at least once. #142

Open
glomowa opened this issue Feb 10, 2022 · 7 comments
Open

Error : You need to call init() on TrueTime at least once. #142

glomowa opened this issue Feb 10, 2022 · 7 comments

Comments

@glomowa
Copy link

glomowa commented Feb 10, 2022

hi i sometimes i got this error

java.lang.IllegalStateException: You need to call init() on TrueTime at least once. com.instacart.library.truetime.TrueTime.now(TrueTime.java:29)

but i already put this on my class that extend Application() class
doAsync { TrueTime.build().initialize() }

@Tooto
Copy link

Tooto commented Jun 23, 2022

same problem

@metatron1973

This comment was marked as spam.

@metatron1973

This comment was marked as spam.

@ashwin-nath-m
Copy link

@Tooto did u get a solution?

@RubyV
Copy link

RubyV commented Sep 21, 2023

does anyone has a solution for this?

@dunghn2201
Copy link

Has this problem already been resolved?

@akhil-handa
Copy link

You might be calling TrueTime.now before the async call is complete

if(TrueTime.isInitialized()) {
return TrueTime.now
} else {
return System.currentTimeMillis()
}

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

No branches or pull requests

7 participants