Skip to content

Conversation

@thanhnguyen2187
Copy link
Contributor

What's this PR do?

  • Improve POST /cronjobs/index-engagement-messages

In the handler implementation:

  • Add debug logging, and
  • Replace abortion with continuation and warning in case there is error on channel messages fetching

A new logic like that is needed to handle the case when Dwarves Discord Bot tries to fetch messages from a private channel where it does not have access to.

Sample warning log:

{"channelID":"1118565478613397614","cursorMessageID":"0","guildID":"957918098403520532","level":"warning","msg":"get messages after cursor error: HTTP 403 Forbidden, {\"message\": \"Missing Access\", \"code\": 50001}","time":"2023-06-14T22:57:30+07:00"}

What are the relevant Git tickets?

Screenshots (if appropriate)

Any background context you want to provide? (if appropriate)

Add debug logging and fix logic for private channel message fetching.
@namnhce namnhce merged commit b755d50 into dwarvesf:develop Jun 15, 2023
namnhce added a commit that referenced this pull request Jun 15, 2023
* release/v0.1.19:
  chore: improve POST `/cronjobs/index-engagement-messages` (#609)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants