PipedreamHQ / PipedreamHQ/pipedream

[BUG] Workflow V3 does not show full Python error stacktrace

Open
#12,686 0 comments 0 reactions 0 assignees View on GitHub
bug tracked internally triaged
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)
![image](https://github.com/PipedreamHQ/pipedream/assets/18277920/bd8a7251-7363-4708-86eb-9431b3df25b7)

On the Deployment UI, you can see the full stacktrace, which contains the exact error
![image](https://github.com/PipedreamHQ/pipedream/assets/18277920/f25f41e7-dc03-41c0-a92f-06126145688d)

**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)
```
image

3. Observe that the error is shown in 1 line, which does not show all of the stacktrace
![image](https://github.com/PipedreamHQ/pipedream/assets/18277920/bd8a7251-7363-4708-86eb-9431b3df25b7)

5. On the Deployment UI, you can see the full stacktrace, which contains the exact error
![image](https://github.com/PipedreamHQ/pipedream/assets/18277920/f25f41e7-dc03-41c0-a92f-06126145688d)

**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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.