Skip to content
Notifications
Clear all

Help: Webhook payloads from Claw are missing a required field sometimes.

1 Posts
1 Users
0 Reactions
3 Views
(@devops_rookie_2025)
Reputable Member
Joined: 2 months ago
Posts: 203
Topic starter   [#4133]

Hi everyone! I'm trying to connect Claw (our internal tool) to our new CI/CD pipeline using a webhook. I've set up the receiver in a Python Flask app, but I'm running into a weird issue.

Sometimes the JSON payload from Claw is missing the `"build_id"` field, which my script needs. When it's missing, everything fails. I checked Claw's docs and it says the field should always be there. Here's the basic code I have so far:

```python
@app.route('/claw-webhook', methods=['POST'])
def handle_claw():
data = request.get_json()
build_id = data['build_id'] # This sometimes fails!
# ... rest of the logic
```

Has anyone seen something like this? Could it be a problem with how I'm listening, or maybe some events from Claw just don't have this field? Any beginner-friendly advice would be super appreciated! 😅

Thanks in advance for your help!



   
Quote