# POST URL Report Generation 404 Not Found

**URL:** https://discuss.elastic.co/t/post-url-report-generation-404-not-found/348679
**Category:** Kibana
**Tags:** elastic-stack-reporting
**Created:** [December 5, 2023, 8:48pm UTC](https://discuss.elastic.co/t/post-url-report-generation-404-not-found/348679 "2023-12-05T20:48:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![backend\_dev](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@backend\_dev](https://discuss.elastic.co/u/backend_dev)
#### Post date: [December 5, 2023, 8:48pm UTC](https://discuss.elastic.co/t/post-url-report-generation-404-not-found/348679/1 "2023-12-05T20:48:14Z")

</div>

I have gone through all related topics and cannot seem to find a solution to my problem.  
If I generate a csv report from Kibana web UI, I am able to download it from Stack Management \> Reporting \> Download report. The size of my report does not exceed 5MB.

Now, if I use POST URL to try to trigger the report outside of Kibana, I get the JSON response with the GET request to download the report but when I open it in the browser, I get the following:

`{"statusCode":404,"error":"Not Found","message":"Not Found"}`

I am using the kbn-xsrf header - I have tried `kbn-xsrf: true` and `kbn-xsrf: reporting`, both yield the same result.

Postman screenshot:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/2/d2b3c92f3d250fe048c7a84b108eaa959b474e38.png)

The status in the JSON response to the POST request is Pending and `attempts:0`, could that be related to the problem?

I used the DevTools to search for pending reports and there were 0 hits. It also does not take long when I use the UI. Please advise.

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [December 27, 2023, 10:20pm UTC](https://discuss.elastic.co/t/post-url-report-generation-404-not-found/348679/2 "2023-12-27T22:20:07Z")

</div>

Hello,

What is the version of your elastic stack please? and could you please post the post URL command fully here? (please blur any sensitive information)

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![backend\_dev](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@backend\_dev](https://discuss.elastic.co/u/backend_dev)
#### Post date: [December 27, 2023, 11:41pm UTC](https://discuss.elastic.co/t/post-url-report-generation-404-not-found/348679/3 "2023-12-27T23:41:30Z")

</div>

Hello, we can close this topic now. It seems the issue was that I also needed to add the basic auth and kibana header to my GET requests.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 24, 2024, 11:41pm UTC](https://discuss.elastic.co/t/post-url-report-generation-404-not-found/348679/4 "2024-01-24T23:41:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
