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

Small non-critical bug #3

Open
tristandostaler opened this issue Jan 9, 2025 · 0 comments
Open

Small non-critical bug #3

tristandostaler opened this issue Jan 9, 2025 · 0 comments

Comments

@tristandostaler
Copy link

Hello,

There is a bug on the step "Validating python file by running" that is not systematically happening.
Sometimes, when running the command python MyTools/1.1.1/src/app.py, we get the error below and it never timeout or finishes.
However, sometimes, shufflecli is able to continue anyway.

As a fix, I added the following:

ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel() // Ensure resources are cleaned up

cmd = exec.CommandContext(ctx, pythonPath, filepath)
cmd.Stdout = &stdoutBuffer
cmd.Stderr = &stderrBuffer

err := cmd.Run()

The error:

2025-01-09 14:10:19,364 - OKIOKTools - INFO:[DEBUG][] Sending result to https://shuffler.io/api/v1/streams
2025-01-09 14:10:19,364 - OKIOKTools - INFO:[DEBUG][] Starting to send result to https://shuffler.io/api/v1/streams
2025-01-09 14:10:19,596 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:20,112 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:21,220 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:22,114 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:23,235 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:24,427 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:25,602 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:26,243 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:26,991 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:27,486 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:28,189 - OKIOKTools - INFO:[DEBUG][] Sending result to https://shuffler.io/api/v1/streams
2025-01-09 14:10:28,189 - OKIOKTools - INFO:[DEBUG][] Starting to send result to https://shuffler.io/api/v1/streams
2025-01-09 14:10:28,405 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:28,828 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:29,618 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:30,059 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:30,482 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:31,290 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:31,496 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:31,903 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:33,029 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
2025-01-09 14:10:33,830 - OKIOKTools - INFO:[ERROR] Bad resp (400) in send_result for url 'https://shuffler.io/api/v1/streams'. Execution ID: 0, Authorization: 0, Header Auth: 7
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