-
My 11ty application uses node-fetch to pull in some 3rd party data. Unfortunately the service that provides this data is breaking the HTTP protocol and the request is resulting in the error described in this Stackoverflow thread. The actual FetchError from 11ty is:
The Stackoverflow thread suggests two answers:
I am using node-fetch v2.6.7 because I don't think I can use v3 yet because it is an ES Module. Whereas node-fetch v3 supports the insecure-http-parser option, I don't think v2 does. I lack the experience to know if either of these is a viable option within 11ty and wondered if anyone here could offer some insight? Many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@b3rimbau Can you share which third party API is returning invalid headers? |
Beta Was this translation helpful? Give feedback.
@b3rimbau Can you share which third party API is returning invalid headers?
If I can reproduce the error locally I can help you try and see if those Stackoverflow workarounds will work or if we need to try and come up with something a bit different.