Giter Club home page Giter Club logo

Comments (6)

missuo avatar missuo commented on July 22, 2024

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.

from deeplx.

ShevonKuan avatar ShevonKuan commented on July 22, 2024

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", 
         },

from deeplx.

missuo avatar missuo commented on July 22, 2024

The actual test, id and headers actually can not need to specify, I do so only to request more like the official client. @ShevonKuan

from deeplx.

ShevonKuan avatar ShevonKuan commented on July 22, 2024

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.

from deeplx.

missuo avatar missuo commented on July 22, 2024

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.

from deeplx.

ifyour avatar ifyour commented on July 22, 2024

maybe your id and headers 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.

from deeplx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.