PipedreamHQ / PipedreamHQ/pipedream
[BUG] Workflow V3 does not show full Python error stacktrace
- Dominant language
- JavaScript
- Stars
- 11.7k
- Forks
- 5.8k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 102
Description
**Describe the bug**
Workflow V3 does not show full Python error stacktrace
The error on Workflow V3 is show on one line, which does not show the exact error that the user is facing (.i.e indentation error)

On the Deployment UI, you can see the full stacktrace, which contains the exact error

**To Reproduce**
Steps to reproduce the behavior:
1. On Pipedream, create a new Workflow V3
2. Add the Python step with the indentation error, for example
```python
def greet(name):
message = "Hello, " + name
print(message)
def calculate_sum(a, b):
result = a + b
print(f"The sum of {a} and {b} is {result}")
class Calculator:
def __init__(self):
self.current_value = 0
def add(self, value):
self.current_value += value
print(f"Current Value: {self.current_value}")
def subtract(self, value):
self.current_value -= value
print(f"Current Value: {self.current_value}")
def handler(pd: "pipedream"):
greet("Alice")
calculate_sum(5, 7)
calc = Calculator()
calc.add(10)
calc.subtract(3)
```
3. Observe that the error is shown in 1 line, which does not show all of the stacktrace

5. On the Deployment UI, you can see the full stacktrace, which contains the exact error

**Expected behavior**
The Workflow V3 - Builder UI should contains full stacktrace
**Additional context**
Issue raise by a customer: https://app.frontapp.com/open/msg_1o0ppnlz?key=C0mvDw0dVDrV1O0Lh716UZwqWNHHuxB4
Contributor guide
Assessment
This issue has not been assessed yet.