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
Cloudflare workers support? #14
Comments
|
Hi @Zombobot1, thanks for creating the issue; we're looking into it and I'll update you when I have more information. |
|
I’d appreciate an update on this as well. Currently can’t use the API because of this. |
|
Have the same issue, are there any updates? |
|
Hi, thanks for the report. I looked into this and I see 2 separate issues.
There is no good way we can support this - e.g. workers don't have access to any file system so we could not implement document translation at all, aside from all the basic node functionality we would need to migrate away from.
I looked into this for a while now - e.g. I checked our API with this SSL test and it looks correctly configured to me. If I had to guess, cloudflare workers don't seem to offer the right SSL ciphers by default (the ones they say they offer here would work), but I have no way to verify that - workers only expose the So unfortunately it seems cloudflare workers are incompatible with both the client library and our API overall :( |
|
I have opened a corresponding issue in the cloudflare repo. They ask: "Is zone's SSL mode Full?" |
|
They mean this setting. As I'm just trying a worker (without a website), I don't think I can access that setting (at least I can't find SSL anywhere) - maybe for you that's different? I asked internally as well - it seems our Ops team has been talking to cloudflare as well, but couldn't fix the problem. If I had to guess, there is no SSL ciphersuite that both servers support, we are looking into it. |
|
Hi, just to give a quick update here - for the API not being reachable at all from cloudflare workers (HTTP Error 525): Just to reiterate, once this is fixed you can manually connect to the DeepL API from CloudFlare workers. As this library needs a full node environment, which is not present on CF workers, the library still won't support CF workers. |
|
Thank you. Is there an open issue to track? My issue in the worked repo is kind of stuck. |
|
@JanEbbing Is there a way to be notified when the deepl is accessible by cloudflare workers? I mean when the 525 error is fixed. We would like to start using it in our company. Perhaps this issue should be left open until then? |
|
I think the best way right now is to follow this ticket (which you seem to follow already). For the issue, I will discuss with my team if we should have an issue-tracking repository on Github for the DeepL API. This repository is just for the NodeJS client library (but we get general API questions in all CL repos from time to time), so I think if we keep a tracking issue open it makes the most sense to put it there. I will also ask internally if we can nudge Cloudflare regarding this, as it affects connections to many APIs from their workers. |
|
Thank you for your amazing work @JanEbbing! |
|
As a workaround for this issue, I run a simple proxy that Cloudflare Workers can connect to. |
This library cannot be used in cloudflare workers because it depends on XMLHttpRequest.
Moreover, if I send requests manually they fail with status code 525.
Code to reproduce
This problem is often mentioned in cloudflare community (example). According to cloudflare "This is typically caused by a configuration issue in the origin web server".
Is there any hope for a fix? Cloudflare workers become more and more popular nowadays.
The text was updated successfully, but these errors were encountered: