# Get Empty Error JSON for some HTTP requests

**URL:** <https://discuss.hashicorp.com/t/get-empty-error-json-for-some-http-requests/6949>\
**Category:** Vault\
**Created:** [March 20, 2020, 3:42pm UTC](https://discuss.hashicorp.com/t/get-empty-error-json-for-some-http-requests/6949 "2020-03-20T15:42:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![csxdog](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/csxdog/32/5433_2.png) [@csxdog](https://discuss.hashicorp.com/u/csxdog)\
**Post date:** [March 20, 2020, 3:42pm UTC](https://discuss.hashicorp.com/t/get-empty-error-json-for-some-http-requests/6949/1 "2020-03-20T15:42:38Z")

</div>

I am new to Vault, just set it up to run a process that creates keys for a web server, via a company Ansible script. I am using version 1.02.

For a few different functions, I get a weird empty error JSON:

{“errors”:[]}  
If I change the path or token, I get correct errors. These blank errors also appear in the audit logs for the server.  
Here are a couple of functions this happens for:

curl --header “X-Vault-Token: xxxx” --request LIST http://[redacted-ip]:8200/v1/pki/roles  
result: {“errors”:[]}

Note: I do have a pki role, as evidenced in the gui.

curl --header “X-Vault-Token: xxxx” --request GET http://[redacted-ip]:8200/v1/secret/[anything]  
result: {“errors”:[]}  
in audit log: “response”:{},“error”:""}  
(Probably due to not having secrets, but it should tell me! Found this by testing around.)

What am I doing incorrectly here? I’ve enabled the pki and secrets engines at default locations, I actually have a pki role. Any help is much appreciated!

---

<div class="post-metadata">

**Author:** ![csxdog](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/csxdog/32/5433_2.png) [@csxdog](https://discuss.hashicorp.com/u/csxdog)\
**Post date:** [March 20, 2020, 7:14pm UTC](https://discuss.hashicorp.com/t/get-empty-error-json-for-some-http-requests/6949/2 "2020-03-20T19:14:59Z")

</div>

Update - I have upgraded to the latest version (1.3.4) and am still getting the same result.

---

<div class="post-metadata">

**Author:** ![csxdog](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/csxdog/32/5433_2.png) [@csxdog](https://discuss.hashicorp.com/u/csxdog)\
**Post date:** [March 20, 2020, 7:40pm UTC](https://discuss.hashicorp.com/t/get-empty-error-json-for-some-http-requests/6949/3 "2020-03-20T19:40:20Z")

</div>

I solved the issue. Turns out, my script wasn’t failing where it should and I thought it had issued the pki certificate, when it hadn’t. I followed the directions in [https://www.vaultproject.io/docs/secrets/pki/](https://www.vaultproject.io/docs/secrets/pki/) and this module completed just fine. On to the next failure!
