Skip to content
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

Invalid DNSpod credentials template #1599

Closed
yangjinhe opened this issue Nov 20, 2021 · 3 comments · Fixed by #1600
Closed

Invalid DNSpod credentials template #1599

yangjinhe opened this issue Nov 20, 2021 · 3 comments · Fixed by #1600
Labels

Comments

@yangjinhe
Copy link

yangjinhe commented Nov 20, 2021

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
Now nginxproxymanager provides two parameters for DNSPod, dns_dnspod_email and dns_dnspod_api_token,
In fact, DNSPod also requires a parameter, the name is called ID, if not provided, it will prompt the following information:

[DNSPOD] Record.Create error: The login token ID is invalid
[DNSPOD] Record.List error: The login token ID is invalid
Error communicating with the DNSPOD API: The login token ID is invalid

Nginx Proxy Manager Version
v2.9.12

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'SSL Certificates'
  2. Click on 'Add Let's Encrypt Certificate'
  3. Scroll down to 'Use a DNS Challenge'
  4. DNS Provider change to 'DNSPod'
  5. modify 'Credentials File Content' ,replace dns_dnspod_email to my email, replace dns_dnspod_api_token to my token
  6. Click Save.
  7. See error
@yangjinhe yangjinhe added the bug label Nov 20, 2021
@chaptergy chaptergy changed the title how to Use a DNS Challenge with DNSpod Invalid DNSpod credentials template Nov 20, 2021
@sunjx97
Copy link

sunjx97 commented Jan 1, 2022

I found something that may be helpful to you. Here is the url: certbot dns插件
It said that you should write both id and key there.

certbot_dns_dnspod:dns_dnspod_api_token = "id,key"

@chaptergy
Copy link
Collaborator

I don't understand much whats on that website. I've also found an issue with the challenge plugin showing exactly what this issue describes, but the author closed it, presumably because they misunderstood something? If any of you can tell me how it is correct and how it works without issues let me know. I will replace the template with your suggestion then.

@sunjx97
Copy link

sunjx97 commented Jan 2, 2022

As I mentioned above, maybe you just need to write both id and its token there (English half-comma separated).
For example, suppose its id is 123456 and its token is abcdefgfedcba, what you should do is to write like this:
dns_dnspod_email = "name@example.com"
dns_dnspod_api_token = "123456,abcdefgfedcba"

@jc21 jc21 closed this as completed in #1600 Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants