For ‘Private Channels’ you need to add the
groups:history scope. For “Direct Messages” you need to add the
im:history scope. You will need to ‘reinstall’ the app for changes to scopes to take effect (Slack’s UI should have prompted you to do this).
Are you seeing anything at
/logs when the errors occur?