I’ve recently been encountering frequent errors in my Forge app when using fetch() and api.asApp().requestJira(). The error message reads: “reason: socket hang up at ClientRequest.” However, the same code rarely caused issues in the past. Has anyone else experienced this? Any insights or solutions would be greatly appreciated!
I am encountering the same error when using Fetch() and api.asApp().requestJira() methods.
When i checked my developer logs its shows like :
Error fetching paginated projects for the query:
FetchError: request to https://domain.atlassian.net/rest/api/3/project/search?query=&startAt=0&maxResults=50 failed, reason: socket hang up
at ClientRequest.<anonymous> (webpack://jira-issue-panel-custom-ui/node_modules/@forge/api/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)
at TCP.callbackTrampoline (node:internal/async_hooks:128:17) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET'
}