Hey! For JSON issues, validate your payload with https://jsonlint.com/. Might be a sneaky syntax error.
For retries, I just loop with a sleep:
```python
for _ in range(3):
try:
response = requests.post(url, json=data, headers=headers)
break
except:
time.sleep(1)
```
Not fancy, but works.
For retries, I just loop with a sleep:
```python
for _ in range(3):
try:
response = requests.post(url, json=data, headers=headers)
break
except:
time.sleep(1)
```
Not fancy, but works.
