Frequent 'Socket Hang Up' Errors with fetch() and api.asApp().requestJira() in Forge App

Hi guys,

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!

My codes like these:

const ret = await api.asApp().requestJira(route`/rest/api/3/issue/12345?fields=summary,reporter,project,worklog`, {
        headers: {
            'Accept': 'application/json'
        }
    });
const response = await fetch('https://my.domain/my/action/', {
        method: 'POST',
        headers: {
            'Authorization': 'Bearer <my token>',
            'Content-Type': 'application/json'
        },
        body: JSON.stringify(data)
    });

Hi @FengLu ,
Could you please provide details of a reproducible example app for this?
Please feel free to create a support ticket if necessary