microsoft / azurechat

🤖 💼 Azure Chat Solution Accelerator powered by Azure Open AI Service
MIT License
1.19k stars 1.12k forks source link

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined #386

Closed na20aak-herts closed 4 months ago

na20aak-herts commented 4 months ago

I have deployed the solution in a customers environment but I am getting this error. I am unable to see the chat pages or persona pages, I get this error instead. Can anyone please advise on how to fix. It is really urgent, thanks so much.

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

image

woodyjon commented 4 months ago

I have the same error. Did you fix it? How? (I see that you closed it)

na20aak-herts commented 3 months ago

Interestingly enough I didn't do anything, my access wasn't eligible to view the pages. However, the customer was able to view and use the application without any issues. It was due to the way the access was set up in their tenant for users who aren't employees.

murdockcrc commented 1 month ago

This happens in the logged in user's session does not have an email address.

In my case, my user's session.user.email was undefined. The logged in user must have an email address.