Error trying to configure msstore-cli in my circleci environment
Maintainers usually reply within 4 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- authentication, cli
Research direction
Start with CredentialManagerUnix.WriteCredentialLinux at line 289, then inspect CLIConfigurator.ConfigureAsync at line 278 and reproduce the reported reconfigure command in a CircleCI Ubuntu environment. Done means the command stores the credentials without the “/dev/null” address error and exits successfully.
Written by the indexing model from the issue text.
Description
I am running this command in my circleci pipeline
msstore reconfigure --tenantId $TENANT_ID --sellerId $SELLER_ID --clientId $CLIENT_ID --clientSecret $CLIENT_SECRET
Even after confirming that my secrets are correct and installing the msstore-cli, I get this error.
I am using the circleci ubuntu image (default)
__ __ _ __ _
| \/ | (_) ___ _ __ ___ ___ ___ / _| | |_
| |\/| | | | / __| | '__| / _ \ / __| / _ \ | |_ | __|
| | | | | | | (__ | | | (_) | \__ \ | (_) | | _| | |_
|_| |_| |_| \___| |_| \___/ |___/ \___/ |_| \__|
____ _ ____
/ ___| | |_ ___ _ __ ___ | _ \ ___ __ __
\___ \ | __| / _ \ | '__| / _ \ | | | | / _ \ \ \ / /
___) | | |_ | (_) | | | | __/ | |_| | | __/ \ V /
|____/ \__| \___/ |_| \___| |____/ \___| \_/
____ _ ___
/ ___| | | |_ _|
| | | | | |
| |___ | |___ | |
\____| |_____| |___|
Use of the Microsoft Store Developer CLI is subject to the terms of the
Microsoft Privacy Statement: https://aka.ms/privacy
You might need to provide some credentials to call the Microsoft Store APIs.
Let's start!
Unhandled exception: MSStore.API.MSStoreException: Failed to write credential
---> MSStore.API.MSStoreException: Failed to write credential: Domain: '137' - Code: '13' - Message: 'Address element “/dev/null” does not contain a colon (:)'
at MSStore.CLI.Services.CredentialManager.Unix.CredentialManagerUnix.WriteCredentialLinux(String userName, String secret) in /_/MSStore.CLI/Services/CredentialManager/Unix/CredentialManagerUnix.cs:line 289
--- End of inner exception stack trace ---
at MSStore.CLI.Services.CredentialManager.Unix.CredentialManagerUnix.WriteCredentialLinux(String userName, String secret) in /_/MSStore.CLI/Services/CredentialManager/Unix/CredentialManagerUnix.cs:line 293
at MSStore.CLI.Services.CLIConfigurator.ConfigureAsync(Boolean askConfirmation, Nullable`1 tenantId, String sellerId, Nullable`1 clientId, String clientSecret, CancellationToken ct) in /_/MSStore.CLI/Services/CLIConfigurator.cs:line 278
at MSStore.CLI.Commands.ReconfigureCommand.Handler.InvokeAsync(InvocationContext context) in /_/MSStore.CLI/Commands/ReconfigureCommand.cs:line 78
at System.CommandLine.NamingConventionBinder.CommandHandler.GetExitCodeAsync(Object returnValue, InvocationContext context)
at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at MSStore.CLI.Program.<>c.<<Main>b__0_2>d.MoveNext() in /_/MSStore.CLI/Program.cs:line 229
--- End of stack trace from previous location ---
at System.CommandLine.Hosting.HostingExtensions.<>c__DisplayClass1_0.<<UseHost>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()
Exited with code exit status 1
Exited with code exit status 1
- Dominant language
- C#
- Stars
- 163
- Forks
- 22
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 7
Getting set up
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.
More from microsoft/msstore-cli
-
Linux: settings.json (SellerId/TenantId/ClientId) not visible to any subsequent msstore invocation after reconfigure, despite file being correctly writtenPossibly taken @isourabh claimed this 18 days ago. Open
microsoft/msstore-cli#181 · 2 comments · 1 reaction · 2 assignees ·
Maintainers usually reply within 4 days
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
microsoft/msstore-cli#179 ·
Maintainers usually reply within 4 days
-
Concurrent msstore invocations crash with an unhandled IOException on telemetrySettings.jsonPossibly taken @isourabh claimed this 25 days ago. Openbug
microsoft/msstore-cli#176 · 1 reaction · 2 assignees ·
Maintainers usually reply within 4 days
-
Delete app commandOpeninvalid
Difficulty 3/5 1-2 days Newbie friendliness 64/100
microsoft/msstore-cli#171 · 6 comments ·
Maintainers usually reply within 4 days
-
Limit on 100 appsOpen
Difficulty 3/5 1-2 days Newbie friendliness 55/100
microsoft/msstore-cli#170 ·
Maintainers usually reply within 4 days
All issues in microsoft/msstore-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NethermindEth/nethermind#14012 ·
Maintainers usually reply within 1 day
-
dependencies Status: Triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
json-schema-org/website#2518 ·
Maintainers usually reply within 1 day
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
builtbybel/Flyoobe#498 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
builtbybel/CrapFixer#112 ·