Title: Wrong endpoint. Use https://api.deepl.com For Deepl PRO auth key · Issue #8 · DeepL/deepl-python · GitHub
Open Graph Title: Wrong endpoint. Use https://api.deepl.com For Deepl PRO auth key · Issue #8 · DeepL/deepl-python
X Title: Wrong endpoint. Use https://api.deepl.com For Deepl PRO auth key · Issue #8 · DeepL/deepl-python
Description: Hi, When I try to use api-free key to translate text it works fine, but when I try to use Pro-key I get following error: translator.translate_text('abc', target_lang='en-us').text Traceback (most recent call last): File "", line 1...
Open Graph Description: Hi, When I try to use api-free key to translate text it works fine, but when I try to use Pro-key I get following error: translator.translate_text('abc', target_lang='en-us').text Traceback (most r...
X Description: Hi, When I try to use api-free key to translate text it works fine, but when I try to use Pro-key I get following error: translator.translate_text('abc', target_lang='en-us').text T...
Opengraph URL: https://github.com/DeepL/deepl-python/issues/8
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong endpoint. Use https://api.deepl.com For Deepl PRO auth key","articleBody":"Hi,\r\nWhen I try to use api-free key to translate text it works fine, but when I try to use Pro-key I get following error:\r\n\r\n`translator.translate_text('abc', target_lang='en-us').text`\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\u003cinput\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/home/.../venv3/lib/python3.6/site-packages/deepl/translator.py\", line 685, in translate_text\r\n self._raise_for_status(status, content, json)\r\n File \"/home/.../venv3/lib/python3.6/site-packages/deepl/translator.py\", line 501, in _raise_for_status\r\n f\"Authorization failure, check auth_key{message}\"\r\ndeepl.exceptions.AuthorizationException: Authorization failure, check auth_key, message: Wrong endpoint. Use https://api.deepl.com\r\n```\r\n\r\nTranslator calls v2 API and fails with this error. But when I tried to change api_call url from v2 to v1 it worked. \r\nIs there any way to use my key with API v2 or change v2 call to v1 except for changing package source code?\r\nI'm using python3.6.14 and requests==2.25.1","author":{"url":"https://github.com/ibelous","@type":"Person","name":"ibelous"},"datePublished":"2021-10-18T16:17:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/8/deepl-python/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:46e22255-094d-e112-1a5d-cb8d6ca75a39 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86E2:FEC2C:24FD9F:34FD1F:6A4D0A36 |
| html-safe-nonce | b4f34a790c489bb551e6a41d064754afbc4fad66fdb3ee48b48fae17a3296f38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkUyOkZFQzJDOjI0RkQ5RjozNEZEMUY6NkE0RDBBMzYiLCJ2aXNpdG9yX2lkIjoiMzYwNjc5NTIwMjAyNTI5NDM5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 58c1f7a95a0956aceffe73a804de7c3744a8f584d7fc9400af491f2d1244b77f |
| hovercard-subject-tag | issue:1029329055 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DeepL/deepl-python/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e5d8d1d864d4ea007a609bc828a80ecf74e33a1d9a64e9b3ed460efed101f932/DeepL/deepl-python/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e5d8d1d864d4ea007a609bc828a80ecf74e33a1d9a64e9b3ed460efed101f932/DeepL/deepl-python/issues/8 |
| og:image:alt | Hi, When I try to use api-free key to translate text it works fine, but when I try to use Pro-key I get following error: translator.translate_text('abc', target_lang='en-us').text Traceback (most r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ibelous |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/DeepL/deepl-python git https://github.com/DeepL/deepl-python.git |
| octolytics-dimension-user_id | 83310993 |
| octolytics-dimension-user_login | DeepL |
| octolytics-dimension-repository_id | 387469387 |
| octolytics-dimension-repository_nwo | DeepL/deepl-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 387469387 |
| octolytics-dimension-repository_network_root_nwo | DeepL/deepl-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width