zed-industries/zed · error · RuntimeError
Slack API error: {data['error']}
Error message
Slack API error: {data['error']} What it means
Error "Slack API error: {data['error']}" thrown in zed-industries/zed.
Source
Thrown at script/github-assign-contributor-issue.py:313
},
)
print(f"Set project status to '{status_name}'")
# --- Slack ---
def slack_post_message(headers, recipient, text):
"""Post a message to a Slack channel or user DM."""
response = requests.post(
f"{SLACK_API}/chat.postMessage",
headers=headers,
json={"channel": recipient, "text": text},
)
response.raise_for_status()
data = response.json()
if not data["ok"]:
raise RuntimeError(f"Slack API error: {data['error']}")
def find_slack_user_id(headers, email):
"""Look up a Slack user ID by email. Returns None if not found."""
try:
response = requests.get(
f"{SLACK_API}/users.lookupByEmail",
headers=headers,
params={"email": email},
)
response.raise_for_status()
return response.json()["user"]["id"]
except (requests.RequestException, KeyError):
return None
def post_to_activity(slack_headers, message):
"""Best-effort post to the Slack activity channel."""View on GitHub (pinned to bc538def45)
When it happens
Trigger: Thrown at script/github-assign-contributor-issue.py:313 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@bc538def45 (2026-08-16).
Data as JSON: /api/errors/0784984c482fabcc.
Report an issue: GitHub.