Hi, anyone knows why the headers return null?
let response = undefined;
try{
response = await api
.asUser()
.requestJira(route `/rest/agile/1.0/sprint/${SprintId}/issue`);
if (response.status == 429){
console.log(`fetchAllIssuesforSprint-Rate Limiting: ${response.headers.get('Retry-After')} || ${response.headers.get('X-RateLimit-Reset')}`);
}
const data = await response.json();
return data;
}catch (error) {
if (error instanceof SyntaxError) {
console.log(`fetchAllIssuesforSprint-AtlTraceID: ${response.headers.get('Atl-Traceid')} || X-Arequestid: ${response.headers.get('X-Arequestid')}`);
console.error('SyntaxError in fetchAllIssuesforSprint:', error.message);
} else {
throw error;
}
}