Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending back images in a reply is producing an error #38

Closed
MarcBollmann opened this issue Sep 15, 2020 · 4 comments
Closed

Sending back images in a reply is producing an error #38

MarcBollmann opened this issue Sep 15, 2020 · 4 comments
Labels

Comments

@MarcBollmann
Copy link

Describe the bug
When replying to a ticket with an image/video/etc. an error occurs

To Reproduce
Steps to reproduce the behavior:

  1. Go in the staff chat
  2. Click on 'reply' and add an image or gif or video
  3. See error

Expected behavior
The user should receive the picture

Additional context
undefined
(node:11764) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'id' of undefined
at C:\Users\mb\Desktop\telegram-support-bot\src\ticket_handler.js:231:14
at Object.exports.check (C:\Users\mb\Desktop\telegram-support-bot\src\dbhandler.js:13:3)
at C:\Users\mb\Desktop\telegram-support-bot\src\ticket_handler.js:227:15
at C:\Users\mb\Desktop\telegram-support-bot\src\ticket_handler.js:293:11
at C:\Users\mb\Desktop\telegram-support-bot\src\ticket_handler.js:324:7
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:11764) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

@bostrot
Copy link
Owner

bostrot commented Sep 17, 2020

Does this happen with the release version too?

@MarcBollmann
Copy link
Author

Okay in the release version it's working my fault 👍

@bostrot
Copy link
Owner

bostrot commented Sep 22, 2020

Okay in the release version it's working my fault 👍

Thanks for reporting 👍

@bostrot
Copy link
Owner

bostrot commented Nov 11, 2020

Fixed with ec686d5 in master

@bostrot bostrot closed this as completed Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants