-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Description
Issue Summary
When webhook message contains utf-8 chars, the requests.post will cause a traceback.
Steps to Reproduce
- Send an webhook alert contains utf-8 chars.
- This line code will cause a traceback.
redash/redash/destinations/webhook.py
Line 45 in 6b1e910
data=json_dumps(data),
Technical details:
- Redash Version:latest
- Browser/OS: linux
- How did you install Redash: docker image
example code for test
import requests
try:
resp = requests.post(
"https://example.com",
data="你好",
headers={},
timeout=5.0,
)
except Exception as e:
print(e)
resp = requests.post(
"https://example.com",
data="你好".encode("utf-8"),
headers={},
timeout=5.0,
)
print(resp.status_code)
Metadata
Metadata
Assignees
Labels
No labels