-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Akka.net persistence actor doesn't get connection string from Fallback Config? #2565
Comments
Have you tried to reverse |
Yes i did it also but not work |
What error did you get exactly? May it be malformed connection string? (the one you've shown in your snipped probably is) Optionally if you want to load connection string from *.config section you may use |
Actually error i am getting is [ERROR][3/22/2017 8:29:43 AM][Thread 0006][[akka://Game/user/PlayerCoordinator#1256963396]] Persistence failure when replaying events for persistenceId [player-coordinator]. Last known sequence number [0] Cause: Akka.Persistence.RecoveryTimedOutException: Recovery timed out, didn't get event within 30s, highest sequence number seen 0. connection string load from config file is working fine. as you can see I was comment out that one because i have a requirement of setting it from C# code behind just before actor system initialize. I just comment connection-string key from config file and instead used fallback config with same key and same connection string values. but it doesn't load and unable to replay message and deliver |
Yes connection is malformed. it is my fault once it corrected work fine thanks for help me |
I have my main hocon config in app.config file and try to set connection string from code behind using fallback config. but when actor system start it doesn't working. here is my hocon config and C# code as below.
Hocon config i have comment out connnection-string to take it from fallback config
akka.persistence {
C# code behind file
static void Main(string[] args)
{
The text was updated successfully, but these errors were encountered: