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
{{ message }}
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
Argument of type '{ agent: HttpAgents; }' is not assignable to parameter of type 'OmitStrict<RequestInit, "method">'. Object literal may only specify known properties, and 'agent' does not exist in type 'OmitStrict<RequestInit, "method">'
Expected Behaviour
The getPhotos and photos.get accept and use the agent parameter.
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
To make use of socket reuse via HTTP keep alive's , we have been setting the agent on our fetch requests and using the library to help:
https://www.npmjs.com/package/agentkeepalive
As per this documentation recommendation:
https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-intermittent-outbound-connection-errors#avoiding-the-problem
Observed Behaviour
The typescript compiler is complaining that:
Argument of type '{ agent: HttpAgents; }' is not assignable to parameter of type 'OmitStrict<RequestInit, "method">'. Object literal may only specify known properties, and 'agent' does not exist in type 'OmitStrict<RequestInit, "method">'
Expected Behaviour
The
getPhotos
andphotos.get
accept and use the agent parameter.The text was updated successfully, but these errors were encountered: