microsoft / microsoft/powerplatform-vscode

pac code add-data-source Request Failed

Open
#1,318 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
277
Forks
60
Avg merge
1d 1h
Merged PRs (30d)
14

Description

pac code add-data-source -a "apiId" -c "connectionId" returns

Error: Request failed: {}
    at e.<anonymous> (C:\Users\userName\AppData\Local\Microsoft\PowerAppsCli\Microsoft.PowerApps.CLI.1.48.2\tools\powerapps-cli.js:2:14093)
    at e.<anonymous> (C:\Users\userName\AppData\Local\Microsoft\PowerAppsCli\Microsoft.PowerApps.CLI.1.48.2\tools\powerapps-cli.js:2:7723)
    at Generator.<anonymous> (C:\Users\userName\AppData\Local\Microsoft\PowerAppsCli\Microsoft.PowerApps.CLI.1.48.2\tools\powerapps-cli.js:2:10279)
    at Generator.throw (C:\Users\userName\AppData\Local\Microsoft\PowerAppsCli\Microsoft.PowerApps.CLI.1.48.2\tools\powerapps-cli.js:2:11195)
    at g (C:\Users\userName\AppData\Local\Microsoft\PowerAppsCli\Microsoft.PowerApps.CLI.1.48.2\tools\powerapps-cli.js:2:11338)
    at u (C:\Users\userName\AppData\Local\Microsoft\PowerAppsCli\Microsoft.PowerApps.CLI.1.48.2\tools\powerapps-cli.js:2:11577)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

I have already connector of Office365Users in Power Apps Connections

Contributor guide

Open the contributing guide

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 by reproducing pac code add-data-source -a "apiId" -c "connectionId" with the reported Office365Users connection and inspect the CLI request path associated with the command. Done means identifying the failed request or missing context and providing a fix or a more useful error that explains the failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.