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

Error when argument contains a space #1

Closed
arharp opened this issue Feb 27, 2021 · 3 comments
Closed

Error when argument contains a space #1

arharp opened this issue Feb 27, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@arharp
Copy link

arharp commented Feb 27, 2021

First of all, thanks for your work on this! I've run into what seems to be a bug, but it very well could be user error.

I'm trying to set a TXT record using something similar to the following:

namecheap domains dns --domainname=domain.com --hostname=@ --recordtype=TXT --address="v=spf1 include:mailserver.com" --ttl=1800

But I'm getting an error saying: Error: expected element type <ApiResponse> but have <HTML>

When I remove all spaces from the address argument, the command goes through. Is this a bug?

@jsgv
Copy link
Owner

jsgv commented Feb 27, 2021

@arharp Thanks for reporting this! I appreciate it.

I can confirm this is a bug. I will create a fix and do a release as soon as I can.

I am assuming you added the correct command in your example. Should be namecheap domains dns sethosts ...

jsgv pushed a commit that referenced this issue Feb 27, 2021
@jsgv
Copy link
Owner

jsgv commented Feb 27, 2021

Can you try with the latest version @arharp ? v0.0.7

@jsgv jsgv added the bug Something isn't working label Feb 27, 2021
@jsgv jsgv self-assigned this Feb 27, 2021
@arharp
Copy link
Author

arharp commented Feb 28, 2021

@jsgv That fixed it. Thanks for the quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants