Thanks for your reply.
The slowest logged successful request of mine was 3.032 seconds. When I load one relatively slow request in a browser, it takes between roughly 2-4 seconds. But it never loads in HubSpot.
If I look in my browser dev tools, I can see that HubSpot is calling its own endpoint which in turn must call mine. That has a timeout parameter specified as 7 seconds (https://api.hubspot.com/extensions/sales-objects/v1/objects?objectTypeId=422&associatedObjectId=578xx014&associatedObjectType=COMPANY&portalId=39xx37&clienttimeout=7000).
I’ve tried modifying that parameter and loading the endpoint from my browser but it doesn’t seem to make any difference, I’m not sure that that parameter is actually being used. If the timeout is in fact 7 seconds, that sounds much more reasonable but I’m not sure why it’s taking twice as long for HubSpot to call my endpoint as it is for me to load it in a browser.
Anything that you could do to help me either extend the timeout or figure out why HubSpot is loading my endpoint so slowly would be much appreciated.