You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
By using the hubspot-api-nodejs, is there any way to add our own middleware (when initializing the hubspot Client)? I cannot find any answer by reading the documentation
By reading and testing the code, it seems that the property config.middleware (IConfiguration parameter used when creating a new Client) will be always overwritten by ApiClientConfigurator.getParams... (static getMiddleware creates an array fromgetHeaderMiddleware and getHttpAgentMiddleware) without our config.middleware option.
Do I miss something? :(
Thanks!
The text was updated successfully, but these errors were encountered:
nicolasmondain
added a commit
to nicolasmondain/hubspot-api-nodejs
that referenced
this issue
Nov 14, 2024
Hello,
By using the hubspot-api-nodejs, is there any way to add our own middleware (when initializing the hubspot Client)? I cannot find any answer by reading the documentation
By reading and testing the code, it seems that the property
config.middleware
(IConfiguration
parameter used when creating anew Client
) will be always overwritten byApiClientConfigurator.getParams
... (static getMiddleware
creates an array fromgetHeaderMiddleware
andgetHttpAgentMiddleware
) without ourconfig.middleware option
.Do I miss something? :(
Thanks!
The text was updated successfully, but these errors were encountered: