-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Describe the bug
Since the latest Apple Store front-end update ("liquid glass"), AppleAppStoreBridge fails to extract the JWT token from app pages and throws an exception:
"JWT token not found in page content". This prevents the bridge from returning any data for affected apps.
Example app: Wipr2 — https://apps.apple.com/us/app/wipr-2/id1662217862
To Reproduce
Steps to reproduce the behavior:
- Open RSS-Bridge and use the AppleAppStoreBridge (or call the bridge URL directly).
- Use this query (example): action=display&bridge=AppleAppStoreBridge&id=1662217862&p=mac&country=US&format=html
- Request the bridge (via the web UI or API).
- See the exception/error "JWT token not found in page content".
Full error / context (copied from the instance):
Details
Type: Exception
Code: 0
Message: JWT token not found in page content
File: bridges/AppleAppStoreBridge.php
Line: 123
Trace
#0 index.php(73): RssBridge->main()
#1 lib/RssBridge.php(39): RssBridge->{closure}()
#2 lib/RssBridge.php(37): CacheMiddleware->__invoke()
#3 middlewares/CacheMiddleware.php(44): RssBridge->{closure}()
#4 lib/RssBridge.php(37): ExceptionMiddleware->__invoke()
#5 middlewares/ExceptionMiddleware.php(17): RssBridge->{closure}()
#6 lib/RssBridge.php(37): SecurityMiddleware->__invoke()
#7 middlewares/SecurityMiddleware.php(19): RssBridge->{closure}()
#8 lib/RssBridge.php(37): MaintenanceMiddleware->__invoke()
#9 middlewares/MaintenanceMiddleware.php(10): RssBridge->{closure}()
#10 lib/RssBridge.php(37): BasicAuthMiddleware->__invoke()
#11 middlewares/BasicAuthMiddleware.php(13): RssBridge->{closure}()
#12 lib/RssBridge.php(37): TokenAuthenticationMiddleware->__invoke()
#13 middlewares/TokenAuthenticationMiddleware.php(10): RssBridge->{closure}()
#14 lib/RssBridge.php(34): DisplayAction->__invoke()
#15 actions/DisplayAction.php(54): DisplayAction->createResponse()
#16 actions/DisplayAction.php(89): AppleAppStoreBridge->collectData()
#17 bridges/AppleAppStoreBridge.php(208): AppleAppStoreBridge->getAppData()
#18 bridges/AppleAppStoreBridge.php(146): AppleAppStoreBridge->getJWTToken()
#19 bridges/AppleAppStoreBridge.php(123)
Context / query and environment:
- Query: action=display&bridge=AppleAppStoreBridge&id=1662217862&p=mac&country=US&format=html
- Version: 2025-01-26 (git.master.345ea58)
- OS: Linux
- PHP: 8.2.28
Expected behavior
AppleAppStoreBridge should find the JWT token (or otherwise obtain the app JSON/metadata) and return the feed items for the given app. The bridge should handle the updated Apple Store page structure introduced by the "liquid glass" frontend change.
Screenshots
If applicable, add screenshots to help explain your problem.
- N/A (stack trace included above). I can attach a screenshot of the app page / network response if it helps.
Desktop (please complete the following information):
- OS: Linux (server)
- Browser: n/a (server-side request)
- Version: n/a
Smartphone (please complete the following information):
- Device: n/a
- OS: n/a
- Browser: n/a
- Version: n/a