[GH-ISSUE #21] /artistInfo endpoint returns 403 #19

Closed
opened 2026-02-28 14:28:21 +03:00 by kerem · 1 comment
Owner

Originally created by @fikrifirat on GitHub (Sep 23, 2022).
Original GitHub issue: https://github.com/entriphy/sp-playcount-librespot/issues/21

Describe the bug
As of today, /artistInfo endpoint started returning 403 Forbidden as API response. It also logs a 403 MercuryException to the console. All other endpoints including /artistInsights work perfectly fine.

To Reproduce
Make a request to /artistInfo endpoint on a running local deployment OR test via the public API at https://api.t4ils.dev/.
For example; Björk :
do a GET to https://api.t4ils.dev/artistInfo?artistid=6TwO05VN5ZM3DYVEsP9vjK
or http://localhost:{{YOUR PORT}}/artistInfo?artistid=6TwO05VN5ZM3DYVEsP9vjK

Expected behavior
The endpoint was working as expected until yesterday and returned also the artist's release info.

Screenshots/Stracktraces/Logs
Error logged to console to a GET request to /artistInfo
2022-09-23 16:43:02,294 TRACE MercuryClient:156 - Send Mercury request, seq: 2, uri: hm://artist/v1/57vWImR43h4CaDao012Ofp/desktop?format=json&locale=en&cat=1, method: GET 2022-09-23 16:43:02,351 TRACE MercuryClient:199 - Handling packet, cmd: MercuryReq, seq: 2, flags: 1, parts: 1 xyz.gianlu.librespot.mercury.MercuryClient$MercuryException: status: 403 at xyz.gianlu.librespot.mercury.MercuryClient.sendSync(MercuryClient.java:106) at dev.t4ils.handler.ArtistInfoHandler.handle(ArtistInfoHandler.java:56) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79) at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82) at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:713) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79) at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750)

Version/Commit
Latest version 1.4.1, by running the compiled script with USER and PASS

Originally created by @fikrifirat on GitHub (Sep 23, 2022). Original GitHub issue: https://github.com/entriphy/sp-playcount-librespot/issues/21 **Describe the bug** As of today, /artistInfo endpoint started returning 403 Forbidden as API response. It also logs a 403 MercuryException to the console. All other endpoints including /artistInsights work perfectly fine. **To Reproduce** Make a request to /artistInfo endpoint on a running local deployment OR test via the public API at https://api.t4ils.dev/. For example; Björk : do a GET to https://api.t4ils.dev/artistInfo?artistid=6TwO05VN5ZM3DYVEsP9vjK or http://localhost:{{YOUR PORT}}/artistInfo?artistid=6TwO05VN5ZM3DYVEsP9vjK **Expected behavior** The endpoint was working as expected until yesterday and returned also the artist's release info. **Screenshots/Stracktraces/Logs** Error logged to console to a GET request to /artistInfo `2022-09-23 16:43:02,294 TRACE MercuryClient:156 - Send Mercury request, seq: 2, uri: hm://artist/v1/57vWImR43h4CaDao012Ofp/desktop?format=json&locale=en&cat=1, method: GET 2022-09-23 16:43:02,351 TRACE MercuryClient:199 - Handling packet, cmd: MercuryReq, seq: 2, flags: 1, parts: 1 xyz.gianlu.librespot.mercury.MercuryClient$MercuryException: status: 403 at xyz.gianlu.librespot.mercury.MercuryClient.sendSync(MercuryClient.java:106) at dev.t4ils.handler.ArtistInfoHandler.handle(ArtistInfoHandler.java:56) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79) at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82) at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:713) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79) at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750)` **Version/Commit** Latest version 1.4.1, by running the compiled script with USER and PASS
kerem 2026-02-28 14:28:21 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@fikrifirat commented on GitHub (Sep 24, 2022):

This seems to be intermittent and started working again after a while..

<!-- gh-comment-id:1256943667 --> @fikrifirat commented on GitHub (Sep 24, 2022): This seems to be intermittent and started working again after a while..
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sp-playcount-librespot#19
No description provided.