• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

DDNS with DigitalOcean API "invalid character '-' in numeric literal","request_id"

Scheduled Pinned Locked Moved DHCP and DNS
ddns
17 Posts 11 Posters 3.0k Views
Loading More Posts
  • 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.
  • 3
    3freet
    last edited by 3freet May 16, 2022, 7:42 AM May 16, 2022, 7:40 AM

    Reference bugtracker: https://redmine.pfsense.org/issues/13167

    I saw this in redmine.pfsense.org and it's specifying the bug is in version 2.6.0.
    I am on 2.4.4 and still got this error. It might be DigitalOcean changed how they handle requests, resulting in these errors.

    1 Reply Last reply Reply Quote 1
    • R
      ra
      last edited by May 16, 2022, 9:03 PM

      I got the same issues since Friday 13th May 2022 on two separate boxes at different locations. Both on Etisalat (ISP). One is on commercial WAN and other residential. The cached IP is 0.0.0.0 . When I load a DynDyn.org account it works fine and the Cached IP works fine.

      Any help on this would be highly appreciated.

      1 Reply Last reply Reply Quote 0
      • C
        Cool_Corona
        last edited by May 17, 2022, 4:00 AM

        Can see it responding from a Cloudflare server. Sure its not related to that?

        1 Reply Last reply Reply Quote 0
        • R
          ra
          last edited by May 17, 2022, 6:36 AM

          I don't have a cloudfare account not know how to set one. but trying with Digital Ocean doesn't work with different API keys and different subdomains. while the dyndns.org (oracle) works fine.
          Could it be that Digital ocean is sending ''-" on certain API or domains? or is my ISP insert characters?

          Is there an easy way to debug the updater communication.

          1 Reply Last reply Reply Quote 0
          • B
            bmeeks
            last edited by May 17, 2022, 12:08 PM

            There is an open bug for Digital Ocean dynamic DNS logged in Redmine: https://redmine.pfsense.org/issues/13167.

            1 Reply Last reply Reply Quote 0
            • R
              ra
              last edited by May 30, 2022, 7:26 AM

              Anyone know how to bump the redmine bug report.

              1 Reply Last reply Reply Quote 0
              • H
                h4ns
                last edited by Jun 4, 2022, 7:30 AM

                Same here!
                Also two separate pfsense installs (both 2.6), different ISP...

                1 Reply Last reply Reply Quote 0
                • P
                  pinster
                  last edited by pinster Jun 4, 2022, 1:35 PM Jun 4, 2022, 1:34 PM

                  Looks to me like DO have recently put the API calls through coloudflare ddos protection - the response is coming back from a cloudflare edge device. It's trying to set a session cookie which the DynDNS script doesn't understand - the actual error thrown is as mentioned that the script is expecting a numeric request_id (which it probably still is once proxied to DO).

                  I do see the bug report but it's sat 20 days - I'm about to go read the issue submission documents - it may be sitting there ignored for not following them? Unusual to have something sat that long....

                  This will likely be affecting all versions as it's something changed upstream of pfsense...

                  1 Reply Last reply Reply Quote 0
                  • P
                    pinster
                    last edited by Jun 7, 2022, 5:02 PM

                    Looks like this happened on 22nd March this year - probably when this broke for everyone.

                    https://blog.cloudflare.com/api-gateway/

                    1 Reply Last reply Reply Quote 0
                    • P
                      plexxer
                      last edited by Jun 16, 2022, 2:20 PM

                      I created a quick and dirty patch that will fix it until a better-made fix is put into place. The file is /etc/inc/dydns.class

                      digital-ocean-dyndns-class.patch

                      R P P J 4 Replies Last reply Jun 16, 2022, 2:34 PM Reply Quote 4
                      • R
                        ra @plexxer
                        last edited by Jun 16, 2022, 2:34 PM

                        @plexxer how to use it/patch? thanks.

                        P 1 Reply Last reply Jun 16, 2022, 4:56 PM Reply Quote 0
                        • P
                          pinster @ra
                          last edited by Jun 16, 2022, 4:56 PM

                          @ra Syntax is patch original_file patch_file

                          Assuming you have the patch in /tmp you could issue

                          patch /etc/inc/dyndns.class /tmp/digital-ocean-dyndns-class.patch 
                          
                          1 Reply Last reply Reply Quote 0
                          • P
                            pinster @plexxer
                            last edited by Jun 16, 2022, 5:01 PM

                            @plexxer Thanks for taking the time to do this - simply not had time to look properly.

                            1 Reply Last reply Reply Quote 1
                            • P
                              pcmac77 @plexxer
                              last edited by Jun 21, 2022, 2:47 AM

                              @plexxer Thanks, this patch worked for me on 2.6.0-RELEASE.

                              1 Reply Last reply Reply Quote 1
                              • P
                                PCOL IT Admin
                                last edited by Aug 6, 2022, 11:50 PM

                                Thanks @pinster - patch also works to correct the issue on 22.05-RELEASE (pfSense+)

                                Updated the Redmine bug to mention this.

                                1 Reply Last reply Reply Quote 1
                                • J
                                  jschechner @plexxer
                                  last edited by Aug 11, 2022, 8:50 PM

                                  @plexxer Worked like a charm on my 2.6.0 boxes too. Updates to my Digital Ocean records seem to take longer than they used to, sometimes long enough for nginx to timeout on pfSense, but if I load the main dashboard in another tab the updates happen quickly, so it looks like the problem is purely cosmetic. In either case, longer updates are far better than broken ones. Thank you!

                                  1 Reply Last reply Reply Quote 1
                                  • L
                                    lesoto
                                    last edited by Aug 23, 2022, 1:43 PM

                                    the issue has ben resolved, I'm no longer getting the error

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                      This community forum collects and processes your personal information.
                                      consent.not_received