Hello! We are using the PHP SDK of GB for features...
# announcements
s
Hello! We are using the PHP SDK of GB for features. Around 1:47PM CDT today we started having issues where we were experiencing timeouts when loading features. Did anything happen during that time? Are we being rate limited or anything? Is there a way to see how many api requests we have made in a month? We are on the Pro account.
Copy code
Http\Client\Exception\NetworkException: Failed to connect to <http://cdn.growthbook.io|cdn.growthbook.io> port 443 after 130032 ms: Connection timed out in /var/app/current/vendor/php-http/curl-client/src/Client
.php:164
Thank you!
f
Hi Anthony - let me check
s
Thank you Graham!
f
no logged downtime, let me check the logs
👍 1
you are using the Cloud version, right?
s
Yes, we are not self hosting
f
CDN looks fine on our end. No increase in error rates or latency around that time.
you are hitting the cdn url right?
s
yes, using
loadFeatures
. I just checked to make sure and it is hitting CDN.
Do you know if we hit any rate limits or anything?
f
I dont think we do any rate limiting
s
I saw in the GB API that there is this error:
*429* - Too Many Requests - You exceeded the rate limit of 60 requests per minute. Try again later.
f
oh interesting
one sec
Yes, we have rate limiting for the REST api, but not the CDN
what url are you hitting?
s
ah ok
<https://cdn.growthbook.io/api/features/client_key>
client_key taken from the SDK connections in the dash board
f
That endpoint should never return a 429 error. Are you sure that error wasn’t from a different request?
s
We didn't get that error, I was just curious if we were being rate limited
and found that error in the api docs
f
oh, right, I misread
s
no worries, appreciate the help
Is there anything from my end I can get to help figure out what happened?
f
did it stop?
s
It seemed to resolve itself after about 10 minutes. Let me see if we are still experiencing anything
Not seeing issues now but it was intermittent an hour or so ago. Will be checking logs tomorrow and can back to you
@fresh-football-47124 Good Morning, hope you are well. Had a question about setting a time out for loading features. Our logs from yesterday indicated a 130 second time out,
Failed to connect to <http://cdn.growthbook.io|cdn.growthbook.io> port 443 after 130032 ms:
. Are we able to set the timeout?
@fresh-football-47124 updated on this, the errors seemed to stop at 2023-09-20 204959 UTC yesterday.