-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Error: Origin SSL Handshake Error (525) when making requests to deepl API #776
Comments
I'm going to transfer this to the export default {
async fetch(request, env, ctx) {
return await fetch("https://api-free.deepl.com/v2/translate");
},
}; which returns a 525 when deployed, but a 403 (correctly) when running locally |
@Zombobot1 Can you please make sure your zone's SSL mode is "Full" and not "Flexible"? Let me know if that solves the problem. |
I asked the deepl team about this and they cannot find this setting. Could you please explain this in more detail? |
This is not a problem with deepl, it's an issue with your Cloudflare account where you're hosting your Worker. I believe you may have your SSL mode set to "Flexible" and you're running into a bug with that. On https://dash.cloudflare.com, log in and open your zone (domain), and then look for this in the sidebar: On that page, the setting looks like this: Please make sure it's set to one of Full, Full (strict), or Strict. Let me know if that helps. |
Oh, right... if this is on workers.dev, then SSL mode shouldn't be an issue. Darn, I guess that's not it then. Somehow it seems like deepl's SSL server configuration and the way Cloudflare behaves as an SSL client are not compatible with each other. I'm afraid this is outside my area of knowledge since SSL termination occurs outside of the Workers system, but I'll see if I can ping someone... |
hey @kentonv - we're getting the same error when trying to connect to DeepL API. We're running on cloudflare workers - on the workers.dev domain (and therefore do not have a zone setup). Any ideas? |
@irvinebroque Any updates on this? |
We had to move our project to AWS because of this problem 😞. |
Hey @Omarov3000 and @tomardern — digging into this internally, thanks for flagging. |
Amazing, thank you @irvinebroque :) Very much appreciated. |
We're very keen on adopting Cloudflare for our organization, but the occurrence of this issue is a significant roadblock. Some of our engineers believe this problem violates our enterprise tech adoption policy, especially since it's been noted for other APIs as well. We would greatly appreciate any updates on the progress of this issue resolution. |
hi @irvinebroque - hope you had a good weekend. It's been three weeks since the last update. Has any further progress been made? |
We also had to move back to AWS at my company because of this issue 🙁. I hope to get some updates on the progress of this issue resolution too. |
Sorry to be "that guy - but is there any update here @irvinebroque? |
Relevant teams have identified the issue, and expect to address towards the end of this year (2023). Since this issue is not about the open-source Workers Runtime, closing this issue. If you have further questions, please contact Cloudflare support. |
👍 Thanks for the update @irvinebroque. Based on the 525 handshake error, we've moved away from DeepL and instead found that the new Cloudflare Workers AI Translation model is good enough for our needs: https://developers.cloudflare.com/workers-ai/models/translation/ It's not perfect, doesn't allow "excluded terms" or anything fancy, but it may be a good stop-gap until this issue is fixed. |
Hey @tomardern - I encountered exactly the same problem as yours. Cloudflare hosted AI translators is not perfect for me so I migrated to DeepL. But when I call DeepL's API on Vercel Edge Runtime, I meet the same strange 525 error. How I solve this is simply to start a proxy service for it. It is easy to start a proxy service on Netlify, just using a [[redirects]]
from = "/*"
to = "https://api-free.deepl.com/:splat"
status = 200 Then runs in the same directory: netlify deploy -d . -p This works well for me. |
This issue still exists as of the current date (2024-01-05) |
And adding another comment as someone who encountered this, was looking to use Cloudflare Workers, and will now be investigating alternatives instead. |
I just ran into this issue as well, when calling DeepL API from my worker. I'm wondering why this is apparently so hard to fix.. |
@tomardern Hey, do you know where I can find the list of languages supported by workers-ai? |
This issue still exists 2024-07-19 |
This issue still exists 2024-08-02. Looks like I will be deploying the API on another service |
For anyone who needs help understanding the Netlify workaround. This works:) Steps to Set Up a Proxy Service on Netlify
Optional: If you don't have Netlify installed
Now you can just switch out the current https://api-free.deepl.com/ URL in your workers app to send to the URL of the Netlify proxy you have just hosted:) Give me a smiley if this helped you:) |
Facing the same issue here 😥 Can't use DeepL API with CF Workers. |
This issue still exists 2024-10-10 |
still a issue (wtf) |
@irvinebroque Any update on this issue? |
@cloudflare come on.... 1 1/2 years? |
Same issue :( Big thanks to @J-Giggles and @CNSeniorious000 for netlify proxy hack, worked for me. But Cloudflare definitely should fix that! |
yeah but fuck relying on an external proxy, cmon Cloudflare |
@irvinebroque Hope you are doing well? I'm currently working with a client, migrating their whole backend to workers, even using the new workflows.. However this issue starts to block the migration, they do have an enterprise plan.. Can we get this issue fixed internally at CF, please? Or can you share any workarounds using CF platform, e.g. page rules, etc.? |
Which Cloudflare product(s) does this pertain to?
Workers/Other
What version of
Wrangler
are you using?3.1.0
What operating system are you using?
Mac
Describe the Bug
It is impossible to query deepl API from workers.
The bug was first mentioned in August 2021 on the forum. It was stated that "this is typically caused by a configuration issue in the origin web server". I opened a corresponding issue in their repo and they concluded that "the problem lies with cloudflare workers". Can you take a look at this problem? Other services might be unreachable as well.
Deepl is a very popular product and it is sad that it can be used with workers.
Code to reproduce
The text was updated successfully, but these errors were encountered: