FetchError: request to https://stargate/forge/entities/graphql failed, reason: socket hang up

We have an error, one of our customers has the following error in his console, he informs us that for some users it works and for others it does not. Maybe someone knows what is the cause of this problem?

FetchError: request to https://stargate/forge/entities/graphql failed, reason: socket hang up
at ClientRequest.<anonymous> (webpack://forge-ui-starter/node_modules/node-fetch/lib/index.mjs:1495:1)
at ClientRequest.emit (node:events:529:35)
at TLSSocket.socketCloseListener (node:_http_client:474:11)
at TLSSocket.emit (node:events:529:35)
at node:net:350:12
at TCP.done (node:_tls_wrap:657:7) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET'
}```

@CristinaBalczar,

Does your app’s code call GraphQL? Would you mind posting your manifest for additional clues (obscuring the appid would be a good idea)?

@ibuchanan,

Thanks for your answer, our application generates an issue panel, but the error only happens to one customer in their instance, and from what they told us this happens to some users, some users are loaded the issue panel or the issue tab and other users are not loaded the panel and stays loaded.

modules:
  jira:issueAction:
    - key: approval-for-cloud-hello-world-request-approvals
      resource: 'request-resource'
      resolver:
        function: resolver
      title: Request Approvals
      viewportSize: 'small'
    - key: approval-for-cloud-hello-world-issue-approval
      resource: 'issue-approval-resource'
      resolver:
        function: resolver
      title: Issue Approval
      viewportSize: 'xlarge'
  jira:globalPage:
    - key: approval-for-cloud-hello-world-global-page
      resource: 'global-page-resource'
      title:  Tab
      resolver:
        function: resolver
      page:
        - title: 'Action'
          route: /approvalM/approval
  jira:issueActivity:
    - key: approval-for-cloud-hello-world-issue-activity
      resource: 'issue-activity-resource'
      resolver:
        function: resolver
      title: Approval History
      label: Approval History
  jira:issuePanel:
    - key: approval-for-cloud-hello-world-issue-panel
      resource: 'issue-panel-resource'
      resolver:
        function: resolver
      title: Approvals
      viewportSize: large
      tooltip: Approvals
  jira:adminPage:
    - key: approval-for-cloud-hello-world-admin-page
      layout: native
      resource: 'configuration-resource'
      resolver:
        function: resolver
      title: Approval
  jira:workflowValidator:
    - key: approval-validator
      name: Approval Validator
      description: This validator will allow the transition only if the issue can be
        transitioned.
      function: validatorTransition
  jiraServiceManagement:portalRequestDetail:
    - key: approval-for-cloud-hello-world-request-panel
      resource: 'request-panel-resource'
      resolver:
        function: resolver
      title: Approval
  jiraServiceManagement:portalUserMenuAction:
    - key: approval-for-cloud-hello-world-pending-approvals
      resource: 'request-panel-resource'
      resolver:
        function: resolver
      title: Approvals
      viewportSize: xlarge
  jira:dashboardGadget:
    - key: approval-chart-gadget
      title: Pending Approvals Chart
      description: Bar chart showing a user's pending approvals.
      resource: 'approval-chart-resource'
      resolver:
        function: resolver
      edit:
        resource: 'approval-chart-resource'
    - key: approval-reporter-gadget
      title: Approval Report
      description: Displays the issues/results of a specific configuration.
      resource: 'approval-rep-resource'
      resolver:
        function: resolver
      edit:
        resource: 'approval-rep-resource'
  jira:customFieldType:
    - key: approval-status-cf
      name: Approvals Status
      description: Display the approvals status
      type: string
      collection: list
      value:
        function: computeValue
      function: cfStatus
    - key: approval-percentage-cf
      name: Approvals Percentages Actions
      description: Display the percentages of the approvals actions
      type: string
      collection: list
      value:
        function: computeValuePercentage
      function: cfPercentage
  jira:entityProperty:
    - key: status-approve
      entityType: issue
      propertyKey: Approve
      values:
        - path: percentage
          type: number
          searchAlias: percentageApprove
    - key: status-reject
      entityType: issue
      propertyKey: Reject
      values:
        - path: percentage
          type: number
          searchAlias: percentageReject
    - key: status-abstain
      entityType: issue
      propertyKey: Abstain
      values:
        - path: percentage
          type: number
          searchAlias: percentageAbstain
    - key: status-pending
      entityType: issue
      propertyKey: Pending
      values:
        - path: percentage
          type: number
          searchAlias: percentagePending
    - key: number-aprrovals
      entityType: issue
      propertyKey: aprovalsMappings
      values:
        - path: numAprrovalMapping
          type: number
          searchAlias: numAprrovalMapping
  jira:projectPage:
    - key: approval-for-cloud-hello-world-project-page
      layout: native
      resource: 'request-panel-resource'
      resolver:
        function: resolver
      title: My Pending Approvals by Project
  jira:projectSettingsPage:
    - key: approval-for-cloud-configuration-page
      resource: 'request-panel-resource'
      resolver:
        function: resolver
      title: Herzum Approval
  jira:jqlFunction:
    - key: issuesPending-function
      name: issuesPendingHerzumApproval
      types:
        - issue
      arguments:
        - name: project
          required: false
      operators:
        - "in"
      function: issuesPending
    - key: issuesApproved-function
      name: issuesApprovedHerzumApproval
      types:
        - issue
      arguments:
        - name: project
          required: false
      operators:
        - "in"
      function: issuesApproved
    - key: issuesRejected-function
      name: issuesRejectedHerzumApproval
      types:
        - issue
      arguments:
        - name: project
          required: false
      operators:
        - "in"
      function: issuesRejected
    - key: pendingAutoTransition-function
      name: pendingAutomaticTransitioning
      types:
        - issue
      arguments:
        - name: project
          required: false
      operators:
        - "in"
      function: pendingAutoTransition
    - key: pendingNeedComment-function
      name: pendingCommentRequired
      types:
        - issue
      arguments:
        - name: project
          required: false
      operators:
        - "in"
      function: pendingNeedComment
    - key: pendingConditionalRule-function
      name: pendingConditionalRule
      types:
        - issue
      arguments:
        - name: rule
          required: false
      operators:
        - "in"
      function: pendingConditionalRule
  trigger:
    - key: cleanDataInstaller
      function: cleanData
      events:
        - avi:forge:installed:app
    - key: resetApprovalProgress
      function: resetProgress
      events:
        - avi:jira:updated:issue
    - key: logsViaComments
      function: commentActions
      events:
        - avi:jira:commented:issue
    - key: addApprovalMappData
      function: addAppMappIssueData
      events:
        - avi:jira:created:issue
    - key: updateSinngleIssues
      function: updateSinngleStatus
      events:
        - avi:jira:updated:issue
  scheduledTrigger:
    - key: my-scheduled-trigger
      function: deleteOldHistoryApp
      interval: hour
  function:
    - key: resolver
      handler: index.handler
    - key: cleanData
      handler: index.cleanData
    - key: validatorTransition
      handler: index.validator
    - key: resetProgress
      handler: index.resetProgress
    - key: commentActions
      handler: index.commentActions
    - key: addAppMappIssueData
      handler: index.creatApprovalMappDataByIssue
    - key: computeValue
      handler: index.computeValue
    - key: computeValuePercentage
      handler: index.computeValuePercentage
    - key: cfPercentage
      handler: index.cfPercentage
    - key: cfStatus
      handler: index.cfStatus
    - key: issuesPending
      handler: index.issuesPending
    - key: issuesApproved
      handler: index.issuesApproved
    - key: issuesRejected
      handler: index.issuesRejected
    - key: pendingAutoTransition
      handler: index.pendingAutoTransition
    - key: pendingNeedComment
      handler: index.pendingNeedComment
    - key: pendingConditionalRule
      handler: index.pendingConditionalRule
    - key: updateSinngleStatus
      handler: index.updateSinngleStatus
    - key: deleteOldHistoryApp
      handler: index.deleteOldHistoryApp
resources:
  - key: 'configuration-resource'
    path: static/global-configuration/build
  - key: 'modal-resource'
    path: static/modal/build
  - key: 'issue-panel-resource'
    path: static/issue-panel/build
  - key: 'issue-activity-resource'
    path: static/issue-activity/build
  - key: 'issue-approval-resource'
    path: static/issue-approval/build
  - key: 'request-resource'
    path: static/request-approvals/build
  - key: 'global-page-resource'
    path: 'static/global-page/build'
  - key: 'approval-chart-resource'
    path: 'static/approval-chart/build'
  - key: 'approval-rep-resource'
    path: 'static/approval-reporter/build'
  - key: 'request-panel-resource'
    path: 'static/request-panel/build'
app:
  runtime:
    name: nodejs18.x
  id: ari:cloud:ecosystem::app/
  licensing:
    enabled: true

permissions:
  scopes:
    - manage:jira-configuration
    - read:jira-user
    - read:jira-work
    - write:jira-work
    - manage:jira-project
    - storage:app
    - read:permission:jira
    - read:issue:jira
    - read:issue-type:jira
    - read:user:jira
    - read:project:jira
    - read:status:jira
    - read:filter:jira
    - read:field:jira
    - read:jira-expressions:jira
    - read:workflow:jira
    - write:workflow:jira
    - read:group:jira
    - read:issue.property:jira
    - write:issue.property:jira
  content:
    styles:
      - unsafe-inline
    scripts:
      - unsafe-inline
  external:
    images:
      - "*.atl-paas.net"
      - "*.wp.com"
      - "*.atlassian.net"
    fetch:
      backend:
        - hooks.slack.com
1 Like