#sherlock
1 messages · Page 1 of 1 (latest)
Did it work before?
ye
During this period, users can still pay normally. But keep prompting this error
This error started only yesterday
I checked the server's network.It's ok
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.
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?
ok, thanks, I let our operation and maintenance colleagues run it on the machine.
No problem! Happy to help 😄
The request to Stripe is fine on your server
Can you share the code of the request being made that threw the error?
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
can you give me a test demo by curl?
The curl for subscription retrieval will be:
curl https://api.stripe.com/v1/subscriptions/sub_xxx \
-u sk_test_xxx:
Reference: https://stripe.com/docs/api/subscriptions/retrieve?lang=curl
It looks like the network should be ok, right?
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?
Yes, running on the machine that threw the error
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
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.
I'd also recommend checking if any Stripe IP addresses has been blocked by the hosting provider: https://stripe.com/docs/ips#ip-addresses
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
Ok, I'll check the ip.
Is there any other way? This problem is not inevitable, it is accidental
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
Ok, thank you for your help. My side will continue to observe, follow up with new progress, I will continue to communicate with you.
No problem! Happy to help 😄
I also have one more question, which one was last added in the ip list, and when was it added?
The last time that Stripe updated the IP address list was more than 6 months ago
OK, thank