You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using the package with mpc in linux, and i'm trying to fetch webradio's favicon with the following code
///url is the field urlResolved of StationasyncfunctiongetFaviconFromPlayback(url:string):Promise<string>{
api =newRadioBrowserApi("generic-api",true)returnawaitapi.getStationByUrl(url).then((stations)=>{if(stations.length>0){returnstations[0].favicon}else{return""}}).catch(e=>{console.error(e)return""})}
After each call its return the same error
Sep 14 15:11:16 PIETRO node[16014]: Response {Sep 14 15:11:16 PIETRO node[16014]: size: 0,Sep 14 15:11:16 PIETRO node[16014]: timeout: 0,Sep 14 15:11:16 PIETRO node[16014]: [Symbol(Body internals)]: {Sep 14 15:11:16 PIETRO node[16014]: body: PassThrough {Sep 14 15:11:16 PIETRO node[16014]: _readableState: [ReadableState],Sep 14 15:11:16 PIETRO node[16014]: _events: [Object: null prototype],Sep 14 15:11:16 PIETRO node[16014]: _eventsCount: 2,Sep 14 15:11:16 PIETRO node[16014]: _maxListeners: undefined,Sep 14 15:11:16 PIETRO node[16014]: _writableState: [WritableState],Sep 14 15:11:16 PIETRO node[16014]: allowHalfOpen: true,Sep 14 15:11:16 PIETRO node[16014]: [Symbol(kCapture)]: false,Sep 14 15:11:16 PIETRO node[16014]: [Symbol(kCallback)]: nullSep 14 15:11:16 PIETRO node[16014]: },Sep 14 15:11:16 PIETRO node[16014]: disturbed: false,Sep 14 15:11:16 PIETRO node[16014]: error: nullSep 14 15:11:16 PIETRO node[16014]: },Sep 14 15:11:16 PIETRO node[16014]: [Symbol(Response internals)]: {Sep 14 15:11:16 PIETRO node[16014]: url: 'https://de1.api.radio-browser.info/json/stations/byurl/http://149.13.0.81/bgestrada',Sep 14 15:11:16 PIETRO node[16014]: status: 404,Sep 14 15:11:16 PIETRO node[16014]: statusText: 'Not Found',Sep 14 15:11:16 PIETRO node[16014]: headers: Headers { [Symbol(map)]: [Object: null prototype] },Sep 14 15:11:16 PIETRO node[16014]: counter: 0Sep 14 15:11:16 PIETRO node[16014]: }Sep 14 15:11:16 PIETRO node[16014]: }
The error persists even if using different urls of WORKING radios
Any idea about?
The text was updated successfully, but these errors were encountered:
Hi,
I'm using the package with mpc in linux, and i'm trying to fetch webradio's favicon with the following code
After each call its return the same error
The error persists even if using different urls of WORKING radios
Any idea about?
The text was updated successfully, but these errors were encountered: