Git Product home page Git Product logo

Comments (12)

theowenyoung avatar theowenyoung commented on May 21, 2024

我这测试是可以的呀,你的是free api key 还是 pro的? 任何网页都不行吗

from immersive-translate.

Ken-UCD avatar Ken-UCD commented on May 21, 2024

遇到了同样的问题,经测试当js是外部加载的就不行(AdGuard/Surge),浏览器内加载就可以,有可能是DeepL判定了useragent

from immersive-translate.

theowenyoung avatar theowenyoung commented on May 21, 2024

from immersive-translate.

al123xiaaaa avatar al123xiaaaa commented on May 21, 2024

我这测试是可以的呀,你的是free api key 还是 pro的? 任何网页都不行吗

Snipaste_2023-01-30_23-07-58

用的free api key,任何网页都不行

from immersive-translate.

theowenyoung avatar theowenyoung commented on May 21, 2024

你的key式这样的吗?

xxxxxx-xxxxx:fx

后面有个:fx

from immersive-translate.

Ken-UCD avatar Ken-UCD commented on May 21, 2024

js是外部加载的就不行? 可以具体描述下吗?我没太懂,确实有几位用户反馈deepl有问题,但是我没能复现, 可以提供个网址吗?

就是没有采用油猴这种浏览器插件的形式加载JS,而是通过AdGuard在系统层面加载JS。可以下载一个AdGuard for Mac 看看能不能复现。
image

from immersive-translate.

theowenyoung avatar theowenyoung commented on May 21, 2024

js是外部加载的就不行? 可以具体描述下吗?我没太懂,确实有几位用户反馈deepl有问题,但是我没能复现, 可以提供个网址吗?

就是没有采用油猴这种浏览器插件的形式加载JS,而是通过AdGuard在系统层面加载JS。可以下载一个AdGuard for Mac 看看能不能复现。 image

通过外部加载肯定不行呀,脚本调用了油猴的API,如果通过外部加载就没法读取配置信息,以及发送网络请求。

from immersive-translate.

al123xiaaaa avatar al123xiaaaa commented on May 21, 2024

你的key式这样的吗?

xxxxxx-xxxxx:fx

后面有个:fx

我的没有:fx这个后缀,但是自己测试用来调用 https://api-free.deepl.com/v2/translate 这个地址的api是正常的

from immersive-translate.

theowenyoung avatar theowenyoung commented on May 21, 2024

Screenshot 2023-01-31 at 14 24 04

我的界面是这样,你确定没有:fx 后缀吗?

目前代码里是根据有没有 fx后缀来判断是否是免费API,才会调用免费api接口。

我以为所有免费api后缀都是有fx,麻烦你再check一下?

如果没有的话,我需要对deepl的设置加一个免费/pro的选项

from immersive-translate.

al123xiaaaa avatar al123xiaaaa commented on May 21, 2024
Screenshot 2023-01-31 at 14 24 04

我的界面是这样,你确定没有:fx 后缀吗?

目前代码里是根据有没有 fx后缀来判断是否是免费API,才会调用免费api接口。

我以为所有免费api后缀都是有fx,麻烦你再check一下?

如果没有的话,我需要对deepl的设置加一个免费/pro的选项

确定是没有的。不过我点了创建新的密钥后就有了,用上新生成的KEY就正常了,可能是以前生成的KEY是没有那个后缀的

from immersive-translate.

LiuWenJia-ops avatar LiuWenJia-ops commented on May 21, 2024

我有一个问题, 来自这里

主要说的是 deepl 会拒绝服务来自前端的 request, 来自跨域问题

from immersive-translate.

ringcrl avatar ringcrl commented on May 21, 2024

我有一个问题, 来自这里

主要说的是 deepl 会拒绝服务来自前端的 request, 来自跨域问题

同样的问题,curl是可以的,在前端就是403

from immersive-translate.

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.