#sherlock

1 messages · Page 1 of 1 (latest)

mortal raptorBOT
distant pagoda
#

Did it work before?

obtuse ingot
#

ye

#

During this period, users can still pay normally. But keep prompting this error

#

This error started only yesterday

#

What do I need to do now to solve this problem? Because I'm not sure if it will affect my users using stripe to pay.

distant pagoda
#

Does the code run on your local machine or hosted server. If it's on hosted server, you should check the network of the hosted server instead, not your own internet. Can you run https://github.com/stripe/stripe-reachability to check network connection?

obtuse ingot
#

ok, thanks, I let our operation and maintenance colleagues run it on the machine.

distant pagoda
#

No problem! Happy to help 😄

obtuse ingot
#

There seems to be no problem.

distant pagoda
#

The request to Stripe is fine on your server

#

Can you share the code of the request being made that threw the error?

obtuse ingot
#

OK, wait a min

#

All the exceptions seem to be thrown by this method.

distant pagoda
#

It looks like the request wasn't reached to Stripe and likely the network. Does it happen on all the Subscription retrieval request or just a few? Can you double check that the hosted provider doesn't block Stripe IP addresses? https://stripe.com/docs/ips#ip-addresses

#

Another item to test is use curl command to retrieve the subscription in your hosted server, does it throw the same error?

#

If the curl request doesn't throw the error, it's likely some other services/libraries/SDK in your application interfere Stripe network requests

obtuse ingot
#

can you give me a test demo by curl?

distant pagoda
obtuse ingot
#

It looks like the network should be ok, right?

distant pagoda
#

Although the request has validation error, but yes - it reaches to Stripe and the network to Stripe is fine

#

Was it run on your hosted server?

obtuse ingot
#

Yes, running on the machine that threw the error

distant pagoda
#

Thanks! In this case, the network to Stripe is fine. If it only happens in the application, it's likely some other SDK/libraries/services interfere the network

#

I'd recommend checking if there's any changes to the application that introduce new library/service/SDK or their version upgrade

obtuse ingot
#

My program hasn't added or upgraded all sdk for at least 3 months, and this problem only appeared yesterday. And the code hasn't been adjusted.

#

If you are told that it is caused by other sdk, it will be too difficult to troubleshoot. Moreover, the code has not been adjusted for a long time, and it was normal before.

distant pagoda
#

Based on the testing that directly made request to Stripe with curl, the network itself is fine

#

If the subscription retrieval requests didn't fail all the time, then some IP addresses might have been blocked

obtuse ingot
#

Ok, I'll check the ip.

#

Is there any other way? This problem is not inevitable, it is accidental

distant pagoda
#

It's likely that there are some network configuration changes in the hosting platform if there is no changes to your code or application

#

There is no ongoing network issue with Stripe services

#

Since you're able to make successful curl request, this means that Stripe's network is fine as well

obtuse ingot
#

Ok, thank you for your help. My side will continue to observe, follow up with new progress, I will continue to communicate with you.

distant pagoda
#

No problem! Happy to help 😄

obtuse ingot
#

I also have one more question, which one was last added in the ip list, and when was it added?

distant pagoda
#

The last time that Stripe updated the IP address list was more than 6 months ago

obtuse ingot
#

OK, thank