#isaacJulien - download pdf
1 messages · Page 1 of 1 (latest)
tyty
Can you share a sample invoice.updated event for me that you're looking at?
Just the event ID
yes
evt_1KYuULGAanIuYctcw65ZCSJT
the event is fine, the invoice_pdf variable is filled
when i copy paste that on my browser i download it
but the thing is with axios i get an HPE_HEADER_OVERFLOW error which is super annoying haha
I'm not familiar with Axios actually
the query is pretty basic tho: https://pastebin.com/AguysiqV
Is that a Node library?
yes
Hm yeah I'm not sure about that library error. I would either look into that library's documentation about this error, reach out to its developer, or try downloading the pdf with a different library
so weird tbh i tried with another PDF url and it works fine
just fails with stripe ones for some reaosn
a GET request on invoice_pdf should work tho right
Yeah I would try another library
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
My colleague gave me more context on this node error. It's due to the header size being larger than the default. There's a flag you can use to increase it: https://stackoverflow.com/questions/35328725/hpe-header-overflow-exception-when-make-http-request
When I tried to get data from REST service, i meet the HPE_HEADER_OVERFLOW error as follow:
var options = {
host: "something.com",
port: 80,
path: "/somepath...",
meth...