-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels