Skip to content

Slack Audit logs endpoint host is wrong #1144

@GalNakash-RecoLabs

Description

@GalNakash-RecoLabs

What happened

The API GetAuditLogs sends a request to https://slack.com/api/

Expected behavior

The audit logs API is accessible only via api.slack.com

Steps to reproduce

  1. Generate a slack client with a valid token for auditlogs:read
  2. Call to get GetAuditLogs
  3. Error will be the HTML page "You've found a glitch

reproducible code

_, nextCursor, err = slackClient.GetAuditLogs(slack.AuditLogParameters{
Limit: maxAuditLogMessages,
Oldest: oldest,
Latest: latest,
Cursor: nextCursor,
Action: eventType,
})

manifest.yaml

Versions

  • Go:
  • slack-go/slack:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions