Bug: IONOS invalid URL #520

Open
opened 2025-11-20 04:24:42 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @jccint on GitHub (Apr 24, 2025).

TLDR: GET request fails due to invalid URL

  1. Is this urgent: Maybe?

  2. DNS provider(s) you use: Ionos

  3. Program version:

    Running version 2.9.0 built on 2024-12-24T10:43:16Z (commit 78f30614b1d085ef6bfbfce92b0e45ca0204f42a)

  4. What are you using to run the container: Windows AMD64 prebuilt binary

  5. Extra information (optional)

Seems like the request URL generated has an invalid path https://api.hosting.ionos.com/%5Cdns%5Cv1%5Czones. However, if this was the case, how come nobody else has stumbled upon this?

Things I have tested:

  • running on a different Windows machine
  • running version 2.6.0 of the prebuilt binary

Could it be a Golang bug? Maybe something exclusive to the prebuilt Windows binary?

Logs:

2025-04-24T17:43:13+02:00 INFO Updating record [domain: [REDACTED] | owner: [REDACTED] | provider: ionos | ip: ipv4 or ipv6] to use 12.34.56.78
2025-04-24T17:43:13+02:00 DEBUG GET https://api.hosting.ionos.com/%5Cdns%5Cv1%5Czones | headers: User-Agent: DDNS-Updater quentin.mcgaw@gmail.com; Accept: application/json; X-Api-Key: [REDACTED]
2025-04-24T17:43:13+02:00 DEBUG 400 Bad Request | headers: Date: Thu, 24 Apr 2025 15:43:13 GMT; Content-Type: application/json; Content-Length: 56; Set-Cookie: DPX=[REDACTED]; Path=/; Expires=Thu, 24-Apr-25 16:43:13 GMT; HttpOnly; Secure; SameSite=Lax; Vary: Origin,Access-Control-Request-Method,Access-Control-Request-Headers; Access-Control-Allow-Origin: * | body: {"message":"Unsupported serviceId: %5Cdns%5Cv1%5Czones"}
2025-04-24T17:43:13+02:00 ERROR getting zones: HTTP status is not valid: 400 Bad Request: failed decoding the following: {"message":"Unsupported serviceId: %5Cdns%5Cv1%5Czones"}

Configuration file (remove your credentials!):

{
    "settings": [
        {
            "provider": "ionos",
            "domain": "any.domain.com",
            "api_key": "[REDACTED]"
        }
    ]
}

Host OS:
Windows 11 Pro 23H2 22631.5189

Originally created by @jccint on GitHub (Apr 24, 2025). **TLDR**: GET request fails due to invalid URL 1. Is this urgent: Maybe? 2. DNS provider(s) you use: Ionos 3. Program version: `Running version 2.9.0 built on 2024-12-24T10:43:16Z (commit 78f30614b1d085ef6bfbfce92b0e45ca0204f42a)` 4. What are you using to run the container: Windows AMD64 prebuilt binary 5. Extra information (optional) Seems like the request URL generated has an invalid path `https://api.hosting.ionos.com/%5Cdns%5Cv1%5Czones`. However, if this was the case, how come nobody else has stumbled upon this? Things I have tested: - running on a different Windows machine - running version 2.6.0 of the prebuilt binary Could it be a Golang bug? Maybe something exclusive to the prebuilt Windows binary? Logs: ```log 2025-04-24T17:43:13+02:00 INFO Updating record [domain: [REDACTED] | owner: [REDACTED] | provider: ionos | ip: ipv4 or ipv6] to use 12.34.56.78 2025-04-24T17:43:13+02:00 DEBUG GET https://api.hosting.ionos.com/%5Cdns%5Cv1%5Czones | headers: User-Agent: DDNS-Updater quentin.mcgaw@gmail.com; Accept: application/json; X-Api-Key: [REDACTED] 2025-04-24T17:43:13+02:00 DEBUG 400 Bad Request | headers: Date: Thu, 24 Apr 2025 15:43:13 GMT; Content-Type: application/json; Content-Length: 56; Set-Cookie: DPX=[REDACTED]; Path=/; Expires=Thu, 24-Apr-25 16:43:13 GMT; HttpOnly; Secure; SameSite=Lax; Vary: Origin,Access-Control-Request-Method,Access-Control-Request-Headers; Access-Control-Allow-Origin: * | body: {"message":"Unsupported serviceId: %5Cdns%5Cv1%5Czones"} 2025-04-24T17:43:13+02:00 ERROR getting zones: HTTP status is not valid: 400 Bad Request: failed decoding the following: {"message":"Unsupported serviceId: %5Cdns%5Cv1%5Czones"} ``` Configuration file (**remove your credentials!**): ```json { "settings": [ { "provider": "ionos", "domain": "any.domain.com", "api_key": "[REDACTED]" } ] } ``` Host OS: Windows 11 Pro 23H2 22631.5189
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#520