YTuner icon indicating copy to clipboard operation
YTuner copied to clipboard

api database request issue

Open TheBossME opened this issue 9 months ago • 1 comments

YTuner v1.2.6 Copyright (c) 2024 Greg P. (https://github.com/coffeegreg) 24-3-25 14:40:12 : Inf : Starting services... 24-3-25 14:40:12 : Inf : Successfully loaded 10 my stations. 24-3-25 14:40:12 : Dbg : Database library : 3.40.1. 24-3-25 14:40:12 : Inf : Checking local database. 24-3-25 14:40:12 : Inf : Preparing local database This may take a while... 24-3-25 14:40:12 : Dbg : Creating tables. 24-3-25 14:40:12 : Dbg : Filling out countries table. 24-3-25 14:40:12 : Dbg : Radio-browser.info: GET countries. 24-3-25 14:40:13 : Err : Radio-browser.info: error getting countries. 24-3-25 14:40:13 : Err : Error filling out countries table. 24-3-25 14:40:13 : Wrn : Database preparing error. 24-3-25 14:40:13 : Wrn : Changing cache to "catFile". 24-3-25 14:40:13 : I24-3-25 14:40:13 : Inf : Getting Radio-browser.info UUIDs... 24-3-25 14:40:13 : Dbg : Radio-browser.info: GET stations. 24-3-25 14:40:18 : Err : Radio-browser.info: error getting stations.

@coffeegreg the issue come up while using all.api.radio-browser.info in ytuner.ini for api-url.

while using nl.api in Nederland it works properly Is it possible to check api responses before getting error ? and question: is IPv6 supported with ytuner ?

Non-authoritative answer: Name: all.api.radio-browser.info Address: 65.109.136.86 Name: all.api.radio-browser.info Address: 162.55.180.156 Name: all.api.radio-browser.info Address: 2a01:4f8:c2c:f004::1 Name: all.api.radio-browser.info Address: 2a01:4f9:c011:bc25::1

TheBossME avatar Mar 24 '25 15:03 TheBossME

Is it possible to check api responses before getting error ?

Yes, but there is only one place to enter RBAPIURL=http://all.api.radio-browser.info. YTuner will need to resolve this domain name like nslookup do and get

Name:    all.api.radio-browser.info
Addresses:  2a01:4f9:c011:bc25::1
          2a01:4f8:c2c:f004::1
          65.109.136.86
          162.55.180.156

and use one of these addresses that provides the valid service. It's best to check the response time first ... 😉 Yes, maybe I'll add it someday...

and question: is IPv6 supported with ytuner ?

Not as a service listening on IPv6 TCP/UDP, not at this moment... and I think it does not make sense. Almost all AVRs operate using IPv4 addresses. But you can try to use IPv6 address as a host name of radio-browser.info server .. 🤔

coffeegreg avatar Mar 24 '25 16:03 coffeegreg