-
Notifications
You must be signed in to change notification settings - Fork 105
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
InvalidSequenceTokenException: The given sequenceToken is invalid. The next expected sequenceToken is: #137
Comments
Because of this exception, some logs are not reaching to cloudwatch. We are facing same issue on staging as well as on prod. |
Are you using 6 different streams? If I remember correctly (it's been years since I've used this library in production), you should assign to each different source of logs. There should be a best practice somewhere in AWS Cloudwatch documentation explaining this. |
Same happens to me, we have just two services (worker and API) on in AWS, each of them has 2 instances. I saw I also think this closed ticket may be related #59. UPD: |
Did the proposed PR solved your issue? If so I will review and test it in my environment later this week. |
@lazywithclass I tested it yesterday and unfortunately it's not :(. |
Ok I will have to give this a look, but I am studying for September's exam session, so I cannot guarantee a prompt fix. |
Now the lib upon How about introducing an option |
Any updates? Have the same issue. |
I'm also experiencing this issue, it occurs when we have multiple tests running in parallel which overloads the stream, or it tries to reuse the same sequence token. |
Any news on that? I'm getting the same issue here. |
Hey guys, has anyone worked on this issue yet? We're getting a lot of |
@sowmenappd In our case, we just migrated to |
@Lisenish thank you, yes this definitely seems like a far better approach. However, wouldn't the |
I completely agree with you! Streaming the logs is definitely the way to go, especially when it comes to scaling. It just makes everything so much easier to manage and maintain. |
@sowmenappd I didn't use |
In our project we have 6 microservices running and we using Seneca for them.
We have a centralized logger implemented using winston.
Recentry we tried to add logs to cloudwatch so we have added Winston cloudwatch.
But wheneverI start my development server, each microservice starts which puts a log to cloudwatch.
So during this, each time I get this InvalidSequenceTokenException for atleast 2 of the microservices start logs.
I am not sure why this is happening.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: