microsoft / microsoft/CopilotStudioSamples

Getting 404 on every POST call that the sharepoint customizer is doing

Open
#497 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
797
Forks
491
PR merge metrics
No merged PRs in 30d

Description

What sample tool are you using?
I'm using this sample https://github.com/microsoft/CopilotStudioSamples/tree/main/ui/embed/sharepoint-customizer

Describe the bug
After building the project and deploying to Sharepoint, the Agent is not working because every call to the directConnectUrl return 404. I have tried configuring environmentID + agentID and just directConnectUrl fetching it from the "web App" channel from copilot studio. Nothing works.

To Reproduce
Steps to reproduce the behavior:

  1. Build the project with real configs
  2. deploy the customizer
  3. click the copilot icon
  4. the chat will not start

Expected behavior
I expect the chat to start

Screenshots

Image

Additional context
Building with docker apline npm 22 image. No errors during the build.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ui/embed/sharepoint-customizer sample and trace how directConnectUrl, environmentID, and agentID are configured and used during the chat startup. Reproduce the build and SharePoint deployment, then inspect the POST requests that return 404. Done means the deployed customizer starts the chat successfully with the documented configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, typescript
Domain
api, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.