GOGETMUSCLE Community Why is there no abort controller exposed for serverless requests ?

Why is there no abort controller exposed for serverless requests ?

The HubSpot CRM Cards uses a “hubspot.serverless” method exposed for sending proxied serverless requests which sends a native fetch under the hood to iniate and takes conf internally

However, it does not expose said conf by way of user configuration and as such you have no abort controller for maanging in-flight requests that are not yet processed

There are countless cases from this ranging from anything debounced (search, etc) to changing ops and batches for data processing that makes no causing race conditions very messy to manaage

There is a way to get around this ……….. There is an “hsFetch” and of course you can use a native “fetch”, but he entire point of serverless is proxying requests that would other be too sensitive on front end

i.e. – Not exposing your access token and proxying that back from serverless is problematic for security reasons too lengthy to describe.

This is an architectural oversight.

Leave a Reply

Your email address will not be published.

Related Post

Learn with HubSpot 変化の時代に求められる「即効性」実現の実践術Learn with HubSpot 変化の時代に求められる「即効性」実現の実践術

こんにちは。HubSpotにてイベントを担当しております松本です。   2025年7月8日(火)〜7月11日(金)毎日12:00から、下記テーマについてオンラインイベントを開催いたします。   =========== Learn with HubSpot 変化の時代に求められる「即効性」実現の実践術 開催日時:2025年7月8日(火)〜7月11日(金)毎日12:00から配信 =========== HubSpot & パートナー企業 全10社が登壇! 本イベントでは営業・マーケティング・カスタマーサービスの各領域で「いち早く成果につなげる」ための戦略や実践的な手法を、HubSpotと業界最前線で活躍するHubSpotパートナー企業9社が各社の強みや実績から独自の切り口で解説。最新のトレンドも取り入れながら、多面的な視点からビジネスの最適解を探ります。   今回はプレゼンテーション形式のセッションに加え、ワークショップ形式のセッションもご用意しています。気になるテーマのセッションにぜひご参加ください。   ▼ウェビナーへの詳細・お申し込みはこちらから▼