microsoft / azurechat

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

When trying to attach a file I get this error - RestError: Authorization failed #330

Open radrad opened 4 months ago

radrad commented 4 months ago

When trying to attach a file (.pdf) I am getting this error: http://localhost:3000/chat/O7RD85ROElgoBg6w7tsz65jocftx2d0j45yw 0:["$@1",["development",null]] 1:{"status":"ERROR","errors":[{"message":"RestError: Authorization failed."}]}

I think based on the POST attempt to chat/[id] folder this is the page that was supposed to be called/posted to. src\app(authenticated)\chat[id]\page.tsx

src\features\chat-page\chat-input\file\file-store.ts src\features\chat-page\chat-services\chat-document-service.ts >> I suspect CrackDocument function is problematic.

image