sfpowerkit icon indicating copy to clipboard operation
sfpowerkit copied to clipboard

profile:reconcile throwing "Error: socket hang up"

Open MarcDBehr opened this issue 1 year ago • 1 comments

Describe the bug Getting error messages during sfpowerkit:source:profile:reconcile.

Destination org has enhanced domains enabled and is on Winter'23 DevHub org does not have enhanced domains enabled and is on Summer'22

It appears that the profile gets cleaned successfully

To Reproduce Steps to reproduce the behavior:


$ sfdx sfpowerkit:source:profile:reconcile -f force-app/main/default/profiles/ -n "Master Integration" -u qa
Config folder does not exists, Creating Folder
-------------------------------------------------------------------------------------------
sfpowerkit  -- The DX@Scale Developer Toolkit - Version:4.2.13 - Release:May 22
-------------------------------------------------------------------------------------------
Profiles Found in Project Directory 1
Initiated Profile reconcile thread :1  with a chunk of 1 profiles
Profiles queued in thread :1 :
[{"path":"force-app/main/default/profiles/Master Integration.profile-meta.xml","name":"Master Integration"}]
Error: socket hang up
    at connResetException (node:internal/errors:691:14)
    at TLSSocket.socketOnEnd (node:_http_client:471:23)
    at TLSSocket.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ECONNRESET'
}
Retrying Network call due to Unable to fetch SELECT Id, QualifiedApiName, EntityDefinitionId, DeveloperName, NameSpacePrefix FROM FieldDefinition WHERE EntityDefinition.QualifiedApiName='Case'
Reconciled Profile force-app/main/default/profiles/Master Integration.profile-meta.xml
State    Full Name              Type     Path
───────  ─────────────────────  ───────  ──────────────────────────────────────────────────────────────────────
Cleaned  Master Integration  Profile  force-app/main/default/profiles/Master Integration.profile-meta.xml

Expected behavior No error messages shown

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows/Linux] MacOS 12.5.1
  • Node Version 16.13.2
  • Version of sfpowerkit[e.g 1.45.0] 4.2.13
  • Salesforce Org Version [ In case of pre release window ] See description

Additional context Add any other context about the problem here.

MarcDBehr avatar Aug 29 '22 18:08 MarcDBehr

Hi @MarcDBehr I will look into this issue this week and see what we can do about it.

Caitlyn-Mills avatar Aug 31 '22 03:08 Caitlyn-Mills