# HTTP Request Error: An error occurred when interacting with the Access API

**URL:** https://forum.flow.com/t/http-request-error-an-error-occurred-when-interacting-with-the-access-api/3483
**Category:** ⚙️ Flow SDKs
**Created:** [August 5, 2022, 2:17pm UTC](https://forum.flow.com/t/http-request-error-an-error-occurred-when-interacting-with-the-access-api/3483 "2022-08-05T14:17:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shanmugam](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@shanmugam](https://forum.flow.com/u/shanmugam)
#### Post date: [August 5, 2022, 2:17pm UTC](https://forum.flow.com/t/http-request-error-an-error-occurred-when-interacting-with-the-access-api/3483/1 "2022-08-05T14:17:47Z")

</div>

I would like to report an issue I am currently facing when trying to get the event on the testnet within the backend server,

```
HTTPRequestError [HTTP Request Error]: 
0|bab api | HTTP Request Error: An error occurred when interacting with the Access API.
0|bab api | error=invalid JSON response body at reason: Unexpected end of JSON input
0|bab api | hostname=https://rest-testnet.onflow.org

```

This error happens when the response is empty. if the response contains data it is not reporting an error in the console

Dependencies  
“@onflow/fcl”: “^1.2.0”,  
“@onflow/sdk”: “^1.1.1”,

access node : [https://rest-testnet.onflow.org](https://rest-testnet.onflow.org)

---

<div class="post-metadata">

### Author: ![Knkamxs1989](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/knkamxs1989/32/734_2.png) [@Knkamxs1989](https://forum.flow.com/u/Knkamxs1989)
#### Post date: [August 12, 2022, 3:58pm UTC](https://forum.flow.com/t/http-request-error-an-error-occurred-when-interacting-with-the-access-api/3483/2 "2022-08-12T15:58:54Z")

</div>

استخدام التنسيق
