Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Namecheap API key not working

Namecheap API key not working

Scheduled Pinned Locked Moved Solved Support
namecheapdns
20 Posts 4 Posters 5.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by girish
    #1

    I was having issues with cloudron creating new domains via the namecheap api so I figured I would try changing the API key and resetting the key for all of my domains. Turns out this was a bad idea because I hit this 400 error when trying to save the new key:
    Screen Shot 2020-12-04 at 3.45.15 PM.png

    Has anyone else encountered this? For further context I have changed my IP recently, but I made sure to update my whitelisted IP on namecheap and change all of my records for my domains.

    marcusquinnM girishG 2 Replies Last reply
    0
    • ? A Former User

      I was having issues with cloudron creating new domains via the namecheap api so I figured I would try changing the API key and resetting the key for all of my domains. Turns out this was a bad idea because I hit this 400 error when trying to save the new key:
      Screen Shot 2020-12-04 at 3.45.15 PM.png

      Has anyone else encountered this? For further context I have changed my IP recently, but I made sure to update my whitelisted IP on namecheap and change all of my records for my domains.

      marcusquinnM Offline
      marcusquinnM Offline
      marcusquinn
      wrote on last edited by
      #2

      @atrilahiji reset the API Key? Maybe it's tied to the prior whitelist?

      • https://ap.www.namecheap.com/settings/tools/apiaccess/

      Web Design https://www.evergreen.je
      Development https://brandlight.org
      Life https://marcusquinn.com

      ? 1 Reply Last reply
      0
      • ? A Former User

        I was having issues with cloudron creating new domains via the namecheap api so I figured I would try changing the API key and resetting the key for all of my domains. Turns out this was a bad idea because I hit this 400 error when trying to save the new key:
        Screen Shot 2020-12-04 at 3.45.15 PM.png

        Has anyone else encountered this? For further context I have changed my IP recently, but I made sure to update my whitelisted IP on namecheap and change all of my records for my domains.

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        @atrilahiji Anything in the box logs? /home/yellowtent/platformdata/logs/box.log.

        ? 2 Replies Last reply
        0
        • girishG girish

          @atrilahiji Anything in the box logs? /home/yellowtent/platformdata/logs/box.log.

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @girish Screen Shot 2020-12-04 at 4.10.13 PM.png

          Heres the most recent bit. Not worried about my IP being out there anyone can find it by looking up my domains anyways.

          1 Reply Last reply
          0
          • marcusquinnM marcusquinn

            @atrilahiji reset the API Key? Maybe it's tied to the prior whitelist?

            • https://ap.www.namecheap.com/settings/tools/apiaccess/
            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @marcusquinn The API key should work with my current whitelist. Just went through and removed the IP from the whitelist, disabled API access, re-enabled it, added my IP, and generated a new key. Same issue.

            1 Reply Last reply
            1
            • girishG girish

              @atrilahiji Anything in the box logs? /home/yellowtent/platformdata/logs/box.log.

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @girish Let me know if you want SSH access. I can enable it if that helps at all.

              girishG 1 Reply Last reply
              0
              • ? A Former User

                @girish Let me know if you want SSH access. I can enable it if that helps at all.

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by girish
                #7

                @atrilahiji I think the issue is something else (not cloudron related). It says "API Key is invalid or API access has not been enabled").

                Try running a simple curl command like this on the server or your laptop:

                curl 'https://api.namecheap.com/xml.response?ApiUser=cloudron&ApiKey=your_api_key&UserName=cloudron&Command=namecheap.domains.getList&ClientIp=1.2.3.4'
                

                You have to substitute ApiUser and UserName with your namecheap username. Client IP is your laptop's IP or the Cloudron IP (depending on where you run the above command). What do you get?

                I get something like:

                <?xml version="1.0" encoding="utf-8"?>
                <ApiResponse Status="OK" xmlns="http://api.namecheap.com/xml.response">
                  <Errors />
                  <Warnings />
                  <RequestedCommand>namecheap.domains.getlist</RequestedCommand>
                  <CommandResponse Type="namecheap.domains.getList">
                    <DomainGetListResult>
                ...
                    </DomainGetListResult>
                    <Paging>
                      <TotalItems>1</TotalItems>
                      <CurrentPage>1</CurrentPage>
                      <PageSize>20</PageSize>
                    </Paging>
                  </CommandResponse>
                  <Server>PHX01APIEXT03</Server>
                  <GMTTimeDifference>--5:00</GMTTimeDifference>
                  <ExecutionTime>0.082</ExecutionTime>
                </ApiResponse>
                
                ? 1 Reply Last reply
                0
                • BrutalBirdieB Offline
                  BrutalBirdieB Offline
                  BrutalBirdie
                  Partner
                  wrote on last edited by BrutalBirdie
                  #8

                  I had this issue once, double check if there is a space at the end or front.

                  Like my work? Consider donating a drink. Cheers!

                  1 Reply Last reply
                  0
                  • girishG girish

                    @atrilahiji I think the issue is something else (not cloudron related). It says "API Key is invalid or API access has not been enabled").

                    Try running a simple curl command like this on the server or your laptop:

                    curl 'https://api.namecheap.com/xml.response?ApiUser=cloudron&ApiKey=your_api_key&UserName=cloudron&Command=namecheap.domains.getList&ClientIp=1.2.3.4'
                    

                    You have to substitute ApiUser and UserName with your namecheap username. Client IP is your laptop's IP or the Cloudron IP (depending on where you run the above command). What do you get?

                    I get something like:

                    <?xml version="1.0" encoding="utf-8"?>
                    <ApiResponse Status="OK" xmlns="http://api.namecheap.com/xml.response">
                      <Errors />
                      <Warnings />
                      <RequestedCommand>namecheap.domains.getlist</RequestedCommand>
                      <CommandResponse Type="namecheap.domains.getList">
                        <DomainGetListResult>
                    ...
                        </DomainGetListResult>
                        <Paging>
                          <TotalItems>1</TotalItems>
                          <CurrentPage>1</CurrentPage>
                          <PageSize>20</PageSize>
                        </Paging>
                      </CommandResponse>
                      <Server>PHX01APIEXT03</Server>
                      <GMTTimeDifference>--5:00</GMTTimeDifference>
                      <ExecutionTime>0.082</ExecutionTime>
                    </ApiResponse>
                    
                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by A Former User
                    #9

                    @girish That works. Still having issues in the UI though.

                    And also, looks like I can add new domains. I only get this error updating existing domains. Trouble is, I have emails with important info on these domains so I can't remove the domains and re-add them.

                    girishG 1 Reply Last reply
                    0
                    • ? A Former User

                      @girish That works. Still having issues in the UI though.

                      And also, looks like I can add new domains. I only get this error updating existing domains. Trouble is, I have emails with important info on these domains so I can't remove the domains and re-add them.

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      @atrilahiji That is strange then, can you enable SSH and send a mail to support@cloudron.io ? I can take a look.

                      ? 1 Reply Last reply
                      0
                      • girishG girish

                        @atrilahiji That is strange then, can you enable SSH and send a mail to support@cloudron.io ? I can take a look.

                        ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by A Former User
                        #11

                        @girish Sent. Just to let you know (its in the email) but I changed my main domain to the domain I was able to add as a test, but now I get the same error when trying to change my main domain back to lahijiapps.dev. 😞

                        I suspect this has quite a bit to do with my IP changing when we got a new router.

                        girishG 2 Replies Last reply
                        0
                        • ? A Former User

                          @girish Sent. Just to let you know (its in the email) but I changed my main domain to the domain I was able to add as a test, but now I get the same error when trying to change my main domain back to lahijiapps.dev. 😞

                          I suspect this has quite a bit to do with my IP changing when we got a new router.

                          girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #12

                          @atrilahiji What I found is that the curl call fails most of the time but works now and then.

                          <?xml version="1.0" encoding="utf-8" ?>
                          <ApiResponse Status="ERROR">
                            <Errors>
                              <Error Number="500000">Too many requests</Error>
                            </Errors>
                            <Server/>
                            <GMTTimeDifference/>
                            <ExecutionTime>0</ExecutionTime>
                          </ApiResponse>
                          

                          Searching for above I see https://whmcs.community/topic/303288-namecheap-domain-sync-error-too-many-requests/ and https://github.com/adamdecaf/terraform-provider-namecheap/issues/9

                          ? 1 Reply Last reply
                          0
                          • ? A Former User

                            @girish Sent. Just to let you know (its in the email) but I changed my main domain to the domain I was able to add as a test, but now I get the same error when trying to change my main domain back to lahijiapps.dev. 😞

                            I suspect this has quite a bit to do with my IP changing when we got a new router.

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #13

                            @atrilahiji So, if I am "patient" and put the key one by one in your domains it does work. For example, I succeeded updating the key for the first domain as well.

                            1 Reply Last reply
                            0
                            • girishG girish

                              @atrilahiji What I found is that the curl call fails most of the time but works now and then.

                              <?xml version="1.0" encoding="utf-8" ?>
                              <ApiResponse Status="ERROR">
                                <Errors>
                                  <Error Number="500000">Too many requests</Error>
                                </Errors>
                                <Server/>
                                <GMTTimeDifference/>
                                <ExecutionTime>0</ExecutionTime>
                              </ApiResponse>
                              

                              Searching for above I see https://whmcs.community/topic/303288-namecheap-domain-sync-error-too-many-requests/ and https://github.com/adamdecaf/terraform-provider-namecheap/issues/9

                              ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by A Former User
                              #14

                              @girish Weird...

                              I'm seeing this when I try to change the domain back.
                              Screen Shot 2020-12-04 at 6.17.10 PM.png

                              I suppose this would be due to the rate limiting?

                              girishG 1 Reply Last reply
                              0
                              • ? A Former User

                                @girish Weird...

                                I'm seeing this when I try to change the domain back.
                                Screen Shot 2020-12-04 at 6.17.10 PM.png

                                I suppose this would be due to the rate limiting?

                                girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by
                                #15

                                @atrilahiji Yes, correct. The DNS calls are failing . I think as a first step, change the keys to the new key (just give 10 mins between updating each domain, it seems to work). After you have switched them over, then change the dashboard domain. It should work.

                                Also, per https://www.namecheap.com/support/knowledgebase/article.aspx/9739/63/api--faq#z, it seems

                                "Our general API calls restriction is 20/min, 700/hour and 8000/day across the whole key."

                                I don't think we make 20 per min, maybe something on their side is enforcing limits wrongly?

                                ? 2 Replies Last reply
                                0
                                • girishG girish

                                  @atrilahiji Yes, correct. The DNS calls are failing . I think as a first step, change the keys to the new key (just give 10 mins between updating each domain, it seems to work). After you have switched them over, then change the dashboard domain. It should work.

                                  Also, per https://www.namecheap.com/support/knowledgebase/article.aspx/9739/63/api--faq#z, it seems

                                  "Our general API calls restriction is 20/min, 700/hour and 8000/day across the whole key."

                                  I don't think we make 20 per min, maybe something on their side is enforcing limits wrongly?

                                  ? Offline
                                  ? Offline
                                  A Former User
                                  wrote on last edited by
                                  #16

                                  @girish I'm in a support chat with them seeing if they can figure out what the heck is going on. Their support is painful but hopefully they get this sorted.

                                  1 Reply Last reply
                                  0
                                  • girishG girish

                                    @atrilahiji Yes, correct. The DNS calls are failing . I think as a first step, change the keys to the new key (just give 10 mins between updating each domain, it seems to work). After you have switched them over, then change the dashboard domain. It should work.

                                    Also, per https://www.namecheap.com/support/knowledgebase/article.aspx/9739/63/api--faq#z, it seems

                                    "Our general API calls restriction is 20/min, 700/hour and 8000/day across the whole key."

                                    I don't think we make 20 per min, maybe something on their side is enforcing limits wrongly?

                                    ? Offline
                                    ? Offline
                                    A Former User
                                    wrote on last edited by
                                    #17

                                    @girish Lol they just said "fuck it" and doubled my quota. Testing it out.

                                    BrutalBirdieB 1 Reply Last reply
                                    2
                                    • ? Offline
                                      ? Offline
                                      A Former User
                                      wrote on last edited by
                                      #18

                                      This can be resolved. Thanks for the help @girish!

                                      1 Reply Last reply
                                      0
                                      • ? A Former User

                                        @girish Lol they just said "fuck it" and doubled my quota. Testing it out.

                                        BrutalBirdieB Offline
                                        BrutalBirdieB Offline
                                        BrutalBirdie
                                        Partner
                                        wrote on last edited by
                                        #19

                                        @atrilahiji said in Namecheap API key not working:

                                        @girish Lol they just said "fuck it" and doubled my quota. Testing it out.

                                        Classic namecheap support 😄

                                        Like my work? Consider donating a drink. Cheers!

                                        marcusquinnM 1 Reply Last reply
                                        0
                                        • BrutalBirdieB BrutalBirdie

                                          @atrilahiji said in Namecheap API key not working:

                                          @girish Lol they just said "fuck it" and doubled my quota. Testing it out.

                                          Classic namecheap support 😄

                                          marcusquinnM Offline
                                          marcusquinnM Offline
                                          marcusquinn
                                          wrote on last edited by
                                          #20

                                          @brutalbirdie Yeah, I tried their Ghost hosting once, until I found how far behind their version updating lagged, which led me to discover Cloudron 😄

                                          Web Design https://www.evergreen.je
                                          Development https://brandlight.org
                                          Life https://marcusquinn.com

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search