java-slack-sdk icon indicating copy to clipboard operation
java-slack-sdk copied to clipboard

S3 object metadata not found for bot/none-none

Open gh-gonzo opened this issue 3 years ago • 3 comments

My bot uses Bolt for Java with Spring Boot. Sometimes in my production server logs I see info like this:

c.s.a.b.s.b.AmazonS3InstallationService  : 
Amazon S3 object metadata not found (key: bot/none-none, AmazonS3Exception: com.amazonaws.services.s3.model.AmazonS3Exception: 
The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: ...; S3 Extended Request ID: ...; Proxy: null), S3 Extended Request ID: ...)

Can I do anything about it?

I was able to reproduce it. You need to uninstall your bot from a computer but still have it opened from the mobile app.

gh-gonzo avatar Nov 21 '22 13:11 gh-gonzo

Hi @gh-gonzo, thanks for sharing this.

Would it be possible to ask you to identify what kind of payload request can cause this? I am guessing that the request pattern may be an Events API one, which does not provide any enterprise_id and team_id, but I am still unsure what it is.

Also, when it happens, do your end-users see any visible errors? Or, did you just find info-level logs like this on the server-side?

seratch avatar Nov 21 '22 13:11 seratch

I need to think for a while how to get this payload.

I haven't noticed any errors as a user. I just found it in info-level server logs.

gh-gonzo avatar Nov 21 '22 13:11 gh-gonzo

Thanks for your response. Good to hear that no end-users are affected by this so far.

seratch avatar Nov 21 '22 23:11 seratch