Closed gggamemaster closed 5 months ago
What message does the exception print?
They were not meant to be running a debugger. They are likely just expiring
You should also check the call stack to see which verification function is failing, it's another way then reading the messages.
it seems time Expire?
.set_expires_at(time + sec{15} + min{2}) menas that the token will time expire after 2 min 15 sec???just few time the exception araise..
@Thalhammer
I'ts very difficult to see pictures, please keep the screenshot for the IDE. It's hard to follow with your language settings. It be great if you changed it to English (or french or german).
You can add
And this will print a message that will make ot easier to know what error you are getting.
Error 14 (I assume it's token verification)
Do get the exception if you run the code outside of the debugger?
you are right ,print "token expired" after i add the code on windows environment.
i run private-claims.cpp fail in vs2022 debug 64 and vs2017 relaese64
Thats pretty odd, ngl. The example sets a expiration of 1h and there should be no way he is halting the program for more than an hour (except on purpose) to debug it.
The example seems to work fine on godbolt (or at least it did with the 0.7 release, I don't add master to godbolt).
~The examples built last week with #348 so I dont think anything broke. Might be some localization with the time?~
Oh that example is not ran in CI... 😡
Is wrong that should be minus 15 seconds not plus.
What's your question?
it raise a exception
Additional Context
the other example,i can run its well except example\partial-claim-verifier.cpp,because i do not install nlohmann-json。and why private-claims.cpp run fail?