Terra

Integration

API
Unified API
SDK
SDK
Authentication
Authentication
Streaming
Streaming
Blood
Blood Report API
Planned Workout
Planned Workout
AI Interface
AI Interface

User engagement

Graph API
Graph API
Scores
Health Scores
Rewards
Health Rewards

Use cases

Enterprise
Enterprise
Insurance
Insurance

Developers

Wearable Data
Wearable Data
Community
Community
Documentation
Documentation

Learn

Blog
Blog
Podcast
Podcast
Events
Events
Reports
Reports

Company

Customers
Customers
Careers
Careers
Partners
Partners
Support
Support
Become an integration
Become an integration


Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.

zap

Latest

zap

Popular

API

Unified API

SDK

Phone SDK

Authentication

Widget

Streaming

Streaming

Graph API

Graph API

How can I fix delays in Terra payloads?

All

BasicScorpion25 months ago

When I authenticate a user or make a HTTP request with to_webhook there is a significant delay, however if I make a HTTP request without to_webhook, the request takes less than 1 second. Wondering if anyone has experienced this issue?

terra

Matthewadmin25 months ago

Hey there

To diagnose this issue, please go onto the dashboard and use the debug tools by navigating to [Dashboard > Tools > Debug > Event Log] and identifying the payload that is affected. Then click the arrow on the right to pullup more details about the event and look at the response time. If you notice that the response time is very large (>2000ms), the issue is most likely caused by your server taking very long to respond to the post request we make to your webhook.


BasicScorpion25 months ago

Some events do report very large response times 5000-12000ms, what could be causing this and how can we fix this?


terra

Matthewadmin25 months ago

Slow server responses could caused by server-overload, if your server is unable to handle the number of requests Terra is sending, if your server is unable to handle multiple requests concurrently or does not have sufficient resources to manager large amounts of traffic, you should consider scaling your ingestion service (allocating more resources).

Or, there may be long synchronous queries being run on your webhook endpoint (to your database or other) that is stalling the response. Look through any queries you are making and optimise your queries or execute them asynchronously.