https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
n

narrow-psychiatrist-15437

02/08/2022, 1:53 AM
Currently testing Growthbook with Vercel's Edge Functions (based on the "A/B Testing with the new Next.js 12 Middleware" example code), but calling
await fetch(FEATURES_ENDPOINT)
gives the following response when deployed to Vercel in Preview:
Copy code
{ cf: undefined,
  webSocket: null,
  url: '<https://cdn.growthbook.io/api/features/[our> key]',
  redirected: false,
  ok: false,
  headers: {},
  statusText: 'Origin SSL Handshake Error',
  status: 525,
  bodyUsed: false,
  body: { locked: false } }
Works fine locally using
vercel dev
. @future-teacher-7046 did you ever experience this error?
f

future-teacher-7046

02/08/2022, 1:57 AM
I haven't seen that before. Looks like it's coming from Cloudflare, which I assume Vercel uses under the hood.
I found a list from Cloudflare about specific issues that could cause the error - https://community.cloudflare.com/t/community-tip-fixing-error-525-ssl-handshake-failed/44256 I'm working through them now to see if there's something about the CDN configuration causing that error
🙌 1
n

narrow-psychiatrist-15437

02/08/2022, 2:04 AM
Thanks!
f

future-teacher-7046

02/08/2022, 2:40 AM
Can you try again? I switched the CDN to use a dedicated SSL cert instead of a wildcard one.
n

narrow-psychiatrist-15437

02/08/2022, 6:42 PM
Works fine now, thanks for the help!
15 Views