#dr-dog_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1506971499465277581
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Hi there! Do you have any examples of Stripe Event IDs where you see this happening?
And what is the URL that you're trying to fetch?
hello!
It is just a standard API call to GET a charge via the Stripe API. My logging is a bit limited and in Node i don't get the full stack trace so all I can see in my logs is
code: "ERR_INVALID_PROTOCOL"
message: "Protocol "http:" not supported. Expected "https:""
name: "TypeError"
stack: "TypeError: Protocol "http:" not supported. Expected "https:"
at new ClientRequest (node:_http_client:187:11)
at Object.request (node:https:381:10)
at Object.wrappedMethod [as request] (/layers/google.nodejs.yarn/yarn_modules/node_modules/@sentry/node/src/integrations/http.ts:126:10)
at makeRequest (/layers/google.nodejs.yarn/yarn_modules/node_modules/stripe/lib/StripeResource.js:410:57)
at /layers/google.nodejs.yarn/yarn_modules/node_modules/stripe/lib/StripeResource.js:508:9
at Stripe.getClientUserAgent (/layers/google.nodejs.yarn/yarn_modules/node_modules/stripe/lib/stripe.js:245:14)
at prepareAndMakeRequest (/layers/google.nodejs.yarn/yarn_modules/node_modules/stripe/lib/StripeResource.js:496:20)
at Constructor._request (/layers/google.nodejs.yarn/yarn_modules/node_modules/stripe/lib/StripeResource.js:520:7)
at /layers/google.nodejs.yarn/yarn_modules/node_modules/stripe/lib/makeRequest.js:95:10
at new Promise (<anonymous>)"
Hm ok some internet research suggests it might be because sentry is monkey patching the fetch call and there was a bug in this version? https://github.com/getsentry/sentry-javascript/issues/7130
Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Yeah, potentially. I was just looking at our Node code where it makes the HTTP request and noticed Sentry in your stacktrace
Also, which version of the Node SDK are you using?
Its quite old "stripe": "7.63.1"
My org has blocked redeploys of the integration code because of some digital migration that is being done and they dont want to invest in the old stack, but then this issue has occurred
Ah ok, I was going to say it seems pretty old from the code I'm finding based on the stacktrace ๐
I don't see us explicitly making any http calls anywhere in the SDK
yeah i can't see why you guys would do that either
Right. The Sentry upgrade would be good to try, if possible
have you ever had a similar problem reported by a user? I have the feeling that this is due to the sentry issue, primarily because the stack trace is so similar
Ok sure thing - from the sounds of things the cause isn't stripe, but thank you for rubber ducky debugging with me
Can i ask you one more question though, what is the software engineering experience like at Stripe?
Sure, what do you want to know? ๐
mainly like what the engineering culture is like over there? And have LLMs made the culture change drastically
Yeah, it's good. We have a lot of really good internal tools, and plenty of folk working on developer productivity, as is probably to be expected from a larger tech company. We've posted about some of this stuff lately on the blog, including: https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents
I don't know if LLMs have changed the actual engineering culture so much โ we still try to stick to our quality bar for everything, despite the increase in velocity that comes with with these sorts of LLM-powered tools.
That sounds pretty awesome honestly. I work at a mid-tier tech company on the S&P500 and I feel like culture is crumbling lol.
Well we're certainly hiring in a bunch of locations: https://stripe.com/jobs
I am based in australia so I will cros my finger sand check it out
ah it seems all the engineering functions are america and india?
It changes over time, but we have engineering folk all over, so it's worth keeping an eye out.
https://stripe.com/jobs/search?remote_locations=Asia+Pacific--Australia+Remote&office_locations=Asia+Pacific--Melbourne&office_locations=Asia+Pacific--Sydney
Would you know what kind of services the australia teams work on?
From those job listings it seems like infrastructure, and professional services, but I otherwise don't know too much about what happens there
Fair enoguh! Thanks a bunch mate i really appreicate your help on this one