grantmakers / profiles

Grantmakers.io Profiles - Summary profiles for all US-based foundations who have filed electronic IRS Form 990-PF
MIT License
1 stars 1 forks source link

Improve reliability of Stitch webhook #53

Closed chadokruse closed 5 years ago

chadokruse commented 5 years ago

Related to Cloudflare somehow? Would explain recent Enativ-based run, where 50% appears in Stitch logs as being captured, while 50% threw the generic Network Error.


Re: root cause, question is same as this thread in SO

The request was made but no response was received

Retry mechanisms Retry Axios npm package https://www.npmjs.com/package/retry-axios

Homegrown example(s) https://stackoverflow.com/a/49976113/1944104 https://github.com/axios/axios/issues/164 https://github.com/axios/axios/issues/934

chadokruse commented 5 years ago

No longer needed as moving to Stitch auth. Using Stitch Webhook was an interim fix to the high error rate using Stitch auth, which was likely due to this Stitch bug.

chadokruse commented 5 years ago

Re-opening as Stitch Webhooks will likely always play a role. They are perfect for pulling in fully public information, especially for non-logged in users as they do NOT require the Stitch SDK (e.g. fast page loads)