aws-samples / amazon-connect-whatsapp-chat

MIT No Attribution
14 stars 8 forks source link

Sending attachments on file processConnectMessage/ #3

Open SantiagoRestrepoRuizFourier opened 1 year ago

SantiagoRestrepoRuizFourier commented 1 year ago

Im getting this Error while using the function send_attachment(...), on line: response = requests.post(URL, headers=headers, data=data) I have no clue how to solve it,

Help is appreciated:

Sending Attachment {'error': {'message': "Unsupported post request. Object with ID '110544395163118' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api", 'type': 'GraphMethodException', 'code': 100, 'error_subcode': 33, 'fbtrace_id': 'AF-qXl4vX2bHLL2NytEKiHX'}}

Ra100NZ commented 9 months ago

@SantiagoRestrepoRuizFourier I was getting the same error (sending attachments from Amazon Connect to Whatsapp). I was able to fix this error. I created a Pull Request. It is ready for merge. If you are still interested (after 1 year), you can check that simple change here: fix