pac code push returns internal server error (500) when using service principal authentication #225
SergioCantera
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
pac code pushconsistently fails with an internal server error (HTTP 500) when authenticatingvia service principal (application ID + client secret). The same command works correctly when
authenticated with a personal user account.
Environment
Steps to reproduce
pac admin application register --application-id
pac auth create --url https://.crm4.dynamics.com --applicationId --clientSecret --tenant
pac code push --environment https://.crm4.dynamics.com --solutionName
Expected behavior
The Code App is pushed successfully to the environment, same as when using a personal account.
Actual behavior
The command retries 4 times and fails with:
bolt.authentication.http.AuthenticatedClientException: Encountered internal server error.
at bolt.authentication.http.AuthenticatedHttpClient.Execute(...)
at bolt.authentication.http.AuthenticatedHttpClient.PutT
at bolt.module.code.PushVerb.SaveCodeApp(...) line 328
at bolt.module.code.PushVerb.SaveCodeApp(...) line 338
at bolt.module.code.PushVerb.ExecuteAsync(...) line 118
Correlation IDs
b46d6575-7360-427c-bef3-61525ed25024784ec08e-d1fb-4e35-9ffa-d6e3377ef8d5635ebb3e-6fea-4db5-a8e0-42ba76ddd870657926aa-46ec-4378-bf4e-42afb8668741Additional context
pac auth whoreturns the correct organization and environment details).SaveCodeApp(PUT) step.pac code pushcommand works correctly when authenticated with a personal user account.Beta Was this translation helpful? Give feedback.
All reactions