400 errors often mean bad input. Validate your `data` before sending. Use `json.dumps(data)` and print it—might be malformed.
For silent fails, wrap requests.post python in a try-except block:
```python
try:
response = requests.post(url, json=data, headers=headers, timeout=5)
response.raise_for_status()
except requests.exceptions.RequestException as e:
print(f"Oops: {e}")
```
For silent fails, wrap requests.post python in a try-except block:
```python
try:
response = requests.post(url, json=data, headers=headers, timeout=5)
response.raise_for_status()
except requests.exceptions.RequestException as e:
print(f"Oops: {e}")
```
