All CLI requests fail with GatewayTimeout
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1k
- Forks
- 132
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 6
Description
Description
All WorkIQ CLI requests to the M365 Copilot API consistently fail with GatewayTimeout (upstream request timeout) errors. Every request is retried 4 times and all attempts time out.
This seems to be account specific (?); a colleague on the same MSIT tenant can use WorkIQ CLI successfully. The M365 Copilot desktop app also works fine for my account, so the issue appears to be specific to the WorkIQ API path.
Steps to Reproduce
workiq logoutworkiq ask -q "hello" -v- Sign in when prompted
- All requests time out with
GatewayTimeout
Error Output
`
request-id: 271b097c-311d-40cd-93ec-042836da704b
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West US 2","Slice":"E","Ring":"4","ScaleUnit":"001","RoleInstance":"MW2PEPF00013F5C"}}
Error: Unexpected error: Too many retries performed. More than 3 retries encountered while sending the request.
(HTTP request failed with status code: GatewayTimeout.
{"error":{"code":"UnknownError","message":"upstream request timeout",
"innerError":{"date":"2026-05-04T23:08:43","request-id":"271b097c-311d-40cd-93ec-042836da704b"}}})
`
Diagnostic Info
- Conversation IDs:
0d316522-d553-4b65-a5ad-0521e8e44e9c,51a7f43e-a4de-4daf-91a4-7b9ed1a95543,3059dcf0-6923-4539-94ca-4a7dae482ca9 - Sample Request IDs:
271b097c-311d-40cd-93ec-042836da704b,07e794ea-6471-4450-953f-2a2df6e75b37,6a190c7f-2da7-4ec8-9935-f4479829e13d - All requests routed to West US 2 (ScaleUnits 001, 002, 003, 004) and occasionally West US ScaleUnit 004
What I've Tried
- Fresh login (
workiq logoutthen re-authenticate): same result - Verified M365 Copilot works via the desktop app (m365.cloud.microsoft/chat)
- EULA is accepted, config looks correct
Environment
- WorkIQ version: 0.4.1.19742
- OS: Windows NT 10.0.28561.0
- Node.js: v16.14.0 (npm copy was removed; built-in binary at
.agency\WorkIQ.Cli.win-x64) - Tenant: MSIT (
isMSITTenant=true) - Date: 2026-05-04, ~3:00 PM – 4:15 PM PDT
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with workiq logout followed by workiq ask -q "hello" -v, then review the verbose output using the listed request and conversation IDs. Compare the CLI request path with the working desktop-app path and verify behavior across the reported West US 2 scale units; done means the CLI request succeeds or the account-specific cause is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100