Botbuilder-samples: Attachment.name has prefix fromClient:: when coming from WebChat

Created on 11 Oct 2019  路  9Comments  路  Source: microsoft/BotBuilder-Samples

BotBuilder-Samples/samples/javascript_nodejs/15.handling-attachments/

When hosted on Azure, attachment.name containts a prefix ::fromClient. in my case this caused an InternalServerErrror on Azure. Fs actually throws an error that i cannot find the file. See https://stackoverflow.com/questions/58306146/internal-server-error-om-azure-when-writing-file-from-buffer-to-filesystem
I had to remove the prefix for it to work

To Reproduce

Steps to reproduce the behavior:
Host the attachmentbot on Azure (Node)
Upload an attachment.
Crash

Bot Services bug customer-replied-to customer-reported

All 9 comments

I can this as well. Looking into it further.

This seems to be the case for only Test in Web Chat (haven't tested full web chat yet). But does not happen in MS Teams, Telegram or Skype.

@HesselWellema can you confirm that Test in Web Chatis where you are witnessing the behavior. Do you have any other channels that exhibit this behavior?

Additionally, it doesn't have to be hosted in Azure. I have tested with a locally hosted bot and it throws an exception there too. It's just TiWC (at least for now).

Hi, locally running on Node with bot emulator I did not witness any issues. Attachment.name does not resolve with a ::fromClient prefix in that case. I did witness the issue in full webchat.

thanks @HesselWellema

I meant to say that I tested a bot that was in azure, but the endpoint (code) was hosted locally (using ngrok). I didn't test in emulator, but thanks for that info.

I also confirmed iframe webchat is failing. I am testing with full web chat, newer versions. Stand by.

Finding: this is done by the DirectLine service.

Fix is in the pipeline. Should ship this week.

This fix is in place. @HesselWellema can you confirm it works for you?

Tested in webchat. Works like a charm. Thank you!

Was this page helpful?
0 / 5 - 0 ratings