# App API Error

**URL:** <https://community.hubspot.com/t/app-api-error/13406>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [March 7, 2019, 7:39pm UTC](https://community.hubspot.com/t/app-api-error/13406 "2019-03-07T19:39:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![homefurn-dev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/homefurn-dev/32/68963_2.png) [@homefurn-dev](https://community.hubspot.com/u/homefurn-dev)\
**Post date:** [March 7, 2019, 7:39pm UTC](https://community.hubspot.com/t/app-api-error/13406/1 "2019-03-07T19:39:25Z")

</div>

I am currently working on an internal Hubspot application that will take sales data from our internal database and push it to a Hubspot contact’s timeline.

The application received several errors today, such as the following:

`{"status":"error","message":"internal error","correlationId":"1dbe1c08-b530-43ff-9351-985d44bc6708","requestId":"5c82809c32754303dd3d7b56b6a11c59"}`

I did notice I did not set a delay between requests and may have been flooding the API server by mistake, but that has since been corrected. Is that the cause of these errors as well?

Thanks.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [March 8, 2019, 5:36pm UTC](https://community.hubspot.com/t/app-api-error/13406/2 "2019-03-08T17:36:19Z")

</div>

Hi, @homefurn-dev.

Are you still encountering these `500`errors?

If so, can you share the following information:

1. The production Hub ID you are making requests to.

2. The full request URL you used, including the method. (Do not include API keys.)

3. The raw request body, including the headers.

4. Any error codes and messages you receive from HubSpot’s API.

---

<div class="post-metadata">

**Author:** ![homefurn-dev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/homefurn-dev/32/68963_2.png) [@homefurn-dev](https://community.hubspot.com/u/homefurn-dev)\
**Post date:** [March 11, 2019, 4:30pm UTC](https://community.hubspot.com/t/app-api-error/13406/3 "2019-03-11T16:30:32Z")

</div>

So for the production HUB ID, I am assuming the hubspot account that the app is pushing the data to? That is **3841636**

**PUT [https://api.hubapi.com/integrations/v1/190203/timeline/event](https://api.hubapi.com/integrations/v1/190203/timeline/event)**

Headers:

```auto
User-Agent: PHPAPP
CDN-Loop: cloudflare
Accept-Encoding: gzip
CF-Connecting-IP: 
True-Client-IP: 
X-HubSpot-Trace: 6dc77aefe20347e7ba59fa0b11cafa53
Authorization: Bearer CO-Zy_aWLRICQQEY5LzqASCUh5oCKPvNCzIZAOSJlctvOJJbB2-pQUKcjs-ejIY1ecXkGzoPAAoCRwAADIACAAgAAAABQhkA5ImVyyLilOineR0rd3TAtb1MRK1b_gvc
X-HS-Internal-Request: 1
Content-Length: 194
X-Real-IP: 
Content-Type: application/json
CF-IPCountry: US
CF-RAY: 4b5edba99e8558fd-DFW
Accept: */*
X-Forwarded-Proto: https
Connection: close
X-Request-Start: 1552321250.823
X-HS-Internal-User-Request: 0
Host: api.hubapi.com
CF-Visitor: {"scheme":"https"}
X-HS-User-Request: 0
X-Forwarded-Port: 443
X-Amzn-Trace-Id: Root=1-5c868ae2-5b358e5c1edbc6907488d228
X-Forwarded-For: 
X-Scheme: https

```

Body:

```auto
{
	"email": "",
	"eventTypeId": "387295",
	"firstName": "",
	"id": "Order-302484672",
	"lastName": "",
	"orderNumber": "302484672",
	"phoneNumber": "",
	"timestamp": 1552319900000
}

```

Error:

```auto
Content-Type: {"type":"application","subtype":"json","parameters":{"charset":"UTF-8"},"wildcardType":false,"wildcardSubtype":false}

{"status":"error","message":"internal error","correlationId":"dfa1be55-9f94-4f6d-bdfc-9dc8b1f911ac","requestId":"6dc77aefe20347e7ba59fa0b11cafa53"}

```

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [March 14, 2019, 1:43pm UTC](https://community.hubspot.com/t/app-api-error/13406/4 "2019-03-14T13:43:55Z")

</div>

Hi, @homefurn-dev.

Apologies for the delayed response.

Thanks for that information. Looking into [your app’s monitoring](https://app.hubspot.com/developer/5484886/application/190203/monitoring/api) section, I do see a number of `500` errors to `/integrations/v1/190203/timeline/event` last week up to Monday, March 11, but I don’t see any in the last few days.

Did you change anything on your end or did the issue resolve on its own?

---

<div class="post-metadata">

**Author:** ![homefurn-dev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/homefurn-dev/32/68963_2.png) [@homefurn-dev](https://community.hubspot.com/u/homefurn-dev)\
**Post date:** [March 15, 2019, 3:48pm UTC](https://community.hubspot.com/t/app-api-error/13406/5 "2019-03-15T15:48:35Z")

</div>

This issue appears to have resolved itself.
