Module working for admin but not for other users

Hi guys, I have build a module to upload files to S3 and save the path to a database, I am using that component in various other apps. The component has some JS code, S3 and MySQL queries. It also preloads JS to generate thumbnails.

Somehow the component is only working for me, the admin, but not for other users. If another user tries to upload a file, it always leads to this error:

(it’s not a screenshot because I just took a pic of the user monitor)

I have already checked resource permissions and everything looks fine. What could be the issue here?

After checking permissions, checking the queries, inputs, resource access and so on the solution was: user had to log out and back in and now it works as intended.

Thanks for following up, @Rupur!