# Elastic agent errors: Error fetching data for metricset http.json: error making http request: Get "http://unix/stats": dial unix /opt/Elastic/Agent/data/tmp/fleet-server-default.sock: connect: no such file or directory

**URL:** <https://discuss.elastic.co/t/elastic-agent-errors-error-fetching-data-for-metricset-http-json-error-making-http-request-get-http-unix-stats-dial-unix-opt-elastic-agent-data-tmp-fleet-server-default-sock-connect-no-such-file-or-directory/358536>\
**Category:** Elastic Agent\
**Created:** [May 1, 2024, 6:10am UTC](https://discuss.elastic.co/t/elastic-agent-errors-error-fetching-data-for-metricset-http-json-error-making-http-request-get-http-unix-stats-dial-unix-opt-elastic-agent-data-tmp-fleet-server-default-sock-connect-no-such-file-or-directory/358536 "2024-05-01T06:10:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theacodes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theacodes/32/113779_2.png) [@theacodes](https://discuss.elastic.co/u/theacodes)\
**Post date:** [May 1, 2024, 6:10am UTC](https://discuss.elastic.co/t/elastic-agent-errors-error-fetching-data-for-metricset-http-json-error-making-http-request-get-http-unix-stats-dial-unix-opt-elastic-agent-data-tmp-fleet-server-default-sock-connect-no-such-file-or-directory/358536/1 "2024-05-01T06:10:56Z")

</div>

getting these errors when i checked elastic agent error logs dashboard

```auto
Error fetching data for metricset apache.status: error fetching data: HTTP error 403 in : 403 Forbidden

```

```auto
Error fetching data for metricset beat.state: error making http request: Get "http://unix/state": dial unix /opt/Elastic/Agent/data/tmp/fleet-server-default.sock: connect: no such file or directory

```

```auto
Error fetching data for metricset apache.status: error fetching data: error making http request: Get "http://127.0.0.1/server-status?auto=": dial tcp 127.0.0.1:80: connect: connection refused

```

These are just error logs that i'm curious to know about. rest all is working fine.
