Closed ifyour closed 1 year ago
An SSL Handshake Failure or Error 525 means that the server and browser were unable to establish a secure connection. This can happen for a variety of reasons. However, it's also important to understand that SSL errors can happen on the client-side or the server-side.
My guess is that vercel's IP may be blocked by DeepL.
maybe your id
and headers
are not right.
const id = 1000*(Math.floor(Math.random() * 99999) + 8300000)+1;
headers: {
"Content-Type": "application/json; charset=utf-8",
"Accept": "*/*",
"x-app-os-name": "iOS",
"x-app-os-version": "16.3.0",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate, br",
"x-app-device": "iPhone13,2",
"User-Agent": "DeepL-iOS/2.6.0 iOS 16.3.0 (iPhone13,2)",
"x-app-build": "353933",
"x-app-version": "2.6",
"Connection": "keep-alive",
},
The actual test, id and headers actually can not need to specify, I do so only to request more like the official client. @ShevonKuan
If not specify the headers it will return 525 or 429 error sometimes. And if the id is wrong, it always return 429 error. So I think it is necessary to add the headers.
If not specify the headers it will return 525 or 429 error sometimes. And if the id is wrong, it always return 429 error. So I think it is necessary to add the headers.
"Content-Type": "application/json; charset=utf-8"
Content-Type should be required. id can be a number of almost digits.
maybe your
id
andheaders
are not right.
I tried changing the id
and headers
, but still got the same error. I gave up and used the Go version instead, directly requesting through IP, which works normally. Thank you for answering my question.
Hello, after referring to your code implementation principle, I wrote a JS version which works fine when debugging locally. However, when I tried to deploy it to the edge function, it always reported a 525 error. May I ask why?
However, when I deployed your go version on the server, it worked normally and now I am seeking help.