# Unable to generate report through API call

**URL:** <https://discuss.rapid7.com/t/unable-to-generate-report-through-api-call/1566>\
**Category:** API\
**Tags:** InsightVM\
**Created:** [August 3, 2020, 2:20pm UTC](https://discuss.rapid7.com/t/unable-to-generate-report-through-api-call/1566 "2020-08-03T14:20:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdasoji\_sdasoji](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@sdasoji\_sdasoji](https://discuss.rapid7.com/u/sdasoji_sdasoji)\
**Post date:** [August 3, 2020, 2:20pm UTC](https://discuss.rapid7.com/t/unable-to-generate-report-through-api-call/1566/1 "2020-08-03T14:20:24Z")

</div>

While Generating on API Call,

## { “status”: 500, “message”: “An unexpected error occurred. See the log file for more information or contact support.”, “links”: [{ “href”: “[https://ipaddress:3780/api/3/reports/](https://ipaddress:3780/api/3/reports/)”, “rel”: “self” } ] }

“severity”: “all”,  
“statuses”: [“vulnerable”]  
},  
“format”: “csv-export”,  
“frequency”: {  
“repeat”: {  
“dayOfWeek”: “”,  
“every”: “”,  
“interval”: 1,  
“lastDayOfMonth”: false,  
“weekOfMonth”: “”  
},  
“start”: “2020-07-01T10:00:00Z”  
},  
“language”: “en-US”,  
“name”: “test3”,  
“owner”: 4,  
“scope”: {  
“assets”: [],  
“scan”: 1093,  
“sites”: [3]  
},  
“template”: “basic-vulnerability-check-results”,  
“timezone”: “America/New\_York”

* * *

---

<div class="post-metadata">

**Author:** ![holly\_wilsey](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/holly_wilsey/32/78_2.png) [@holly\_wilsey](https://discuss.rapid7.com/u/holly_wilsey)\
**Post date:** [August 3, 2020, 3:24pm UTC](https://discuss.rapid7.com/t/unable-to-generate-report-through-api-call/1566/2 "2020-08-03T15:24:26Z")

</div>

With your endpoint URL, are you passing in an ID to retrieve a particular report? Can you double check that it’s the correct ID?

---

<div class="post-metadata">

**Author:** ![keith](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@keith](https://discuss.rapid7.com/u/keith)\
**Post date:** [March 25, 2021, 9:25am UTC](https://discuss.rapid7.com/t/unable-to-generate-report-through-api-call/1566/3 "2021-03-25T09:25:45Z")

</div>

Yeah getting same result here, tried different format, template and changing between scan & asset = all exact same error 500.

{  
“status” : 500,  
“message” : “An unexpected error occurred. See the log file for more information or contact support.”,  
“links” : [ {  
“href” : “[https://insightvm:3780/api/3/reports/213](https://insightvm:3780/api/3/reports/213)”,  
“rel” : “self”  
} ]  
}

JSON:

{  
“name”:“Test15”,  
“owner”:“10”,  
“timezone”:“Australia/Sydney”,  
“filters::”: {  
“severity”: “”,  
“statuses”: [  
“vulnerable”  
]  
},  
“scope”: {  
“assetGroups”: [],  
“assets”: [7100],  
“sites”: [],  
“tags”: []  
},  
“users”:[],  
“format”: “csv-export”,  
“language”:“en-us”,  
“template”:“Report-32—32-va-32-export-32-csv”  
}

---

<div class="post-metadata">

**Author:** ![ggopinath.vijayan](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/g/3ab097/32.png) [@ggopinath.vijayan](https://discuss.rapid7.com/u/ggopinath.vijayan)\
**Post date:** [May 14, 2024, 4:48pm UTC](https://discuss.rapid7.com/t/unable-to-generate-report-through-api-call/1566/4 "2024-05-14T16:48:58Z")

</div>

I’m also facing same error. Is there a conclusion to this?
