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

[RunWhen] worker Application Issue #8

Open
jon-funk opened this issue Mar 4, 2024 · 0 comments
Open

[RunWhen] worker Application Issue #8

jon-funk opened this issue Mar 4, 2024 · 0 comments

Comments

@jon-funk
Copy link

jon-funk commented Mar 4, 2024

RunSession Details

A RunSession (started by [email protected]) with the following tasks has produced this GitHub Issue:

  • ["Get ${CONTAINER_NAME} Application Logs","Scan ${CONTAINER_NAME} Application For Misconfigured Environment","Troubleshoot ${CONTAINER_NAME} Application Logs"]

To view the RunSession, click this link

The following exception was found while parsing the application logs of worker

   at Worker.Program.Main(String[] args) in /source/Program.cs:line 74

Near this code

                        { // Normal +1 vote requested
			    if (vote.vote == "a") {
				try{
					throw new Exception($"The Voter {vote.voter_id} failed to have its vote: {vote.vote} processed.");
				}catch(Exception ex){
					Console.WriteLine($"Exception Occured During Work: {ex}");
				}
			    }
                            UpdateVote(pgsql, vote.voter_id, vote.vote);
                        }

Source Code

Found associated files in exception stacktrace data:

https://github.com/runwhen-contrib/demo-sandbox-example-voting-app/blob/main/worker/Program.cs
Recent commited changes to this file:
- 7d88d33


Repository URL(s):


RunWhen Workspace

Recreating:

Here's the command used to collect the exception data:
kubectl --context=default -n voting-app logs -l app=worker --tail=500 --limit-bytes=256000 --since=60m --container=worker | grep -Eiv "InvalidToken|Placeholder" || true

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

1 participant