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
When attempting to fetchPage on a ChannelExtractor extractor, I get the following error:
java.lang.NullPointerException: Cannot invoke "com.grack.nanojson.JsonArray.getObject(int)" because the return value of "com.grack.nanojson.JsonObject.getArray(String)" is null
at org.schabi.newpipe.extractor.services.youtube.YoutubeChannelHelper.getChannelResponse(YoutubeChannelHelper.java:154)
at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeChannelExtractor.onFetchPage(YoutubeChannelExtractor.java:92)
at org.schabi.newpipe.extractor.Extractor.fetchPage(Extractor.java:60)
I've attempted to replicate the request using curl, but this results in the same issue: curl -X POST "https://www.youtube.com/youtubei/v1/browse?prettyPrint=false" -H "Origin: https://www.youtube.com" -H "Cookie: SOCS=CAE=" -H "X-YouTube-Client-Name: 1" -H "Referer: https://www.youtube.com" -H "X-YouTube-Client-Version: 2.20240502.00.00" -H "Accept-Language: en-GB, en;q=0.9" -H "Content-Type: application/json" --data '{"context":{"client":{"hl":"en-GB","gl":"GB","clientName":"WEB","clientVersion":"2.20240502.00.00","originalUrl":"https://www.youtube.com","platform":"DESKTOP","utcOffsetMinutes":0},"request":{"internalExperimentFlags":[],"useSsl":true},"user":{"lockedSafetyMode":false}},"browseId":"UCE1jXbVAGJQEORz9nZqb5bQ","params":"EgZ2aWRlb3PyBgQKAjoA"}'
This both happens when using my custom downloader implementation and using the DownloaderImpl of newpipe with the android stuff stripped out.
The text was updated successfully, but these errors were encountered:
When attempting to
fetchPage
on aChannelExtractor
extractor, I get the following error:This is due to the response json not containing the "onResponseReceivedActions" needed by the YoutubeChannelHelper.
I've attempted to replicate the request using curl, but this results in the same issue:
curl -X POST "https://www.youtube.com/youtubei/v1/browse?prettyPrint=false" -H "Origin: https://www.youtube.com" -H "Cookie: SOCS=CAE=" -H "X-YouTube-Client-Name: 1" -H "Referer: https://www.youtube.com" -H "X-YouTube-Client-Version: 2.20240502.00.00" -H "Accept-Language: en-GB, en;q=0.9" -H "Content-Type: application/json" --data '{"context":{"client":{"hl":"en-GB","gl":"GB","clientName":"WEB","clientVersion":"2.20240502.00.00","originalUrl":"https://www.youtube.com","platform":"DESKTOP","utcOffsetMinutes":0},"request":{"internalExperimentFlags":[],"useSsl":true},"user":{"lockedSafetyMode":false}},"browseId":"UCE1jXbVAGJQEORz9nZqb5bQ","params":"EgZ2aWRlb3PyBgQKAjoA"}'
This both happens when using my custom downloader implementation and using the DownloaderImpl of newpipe with the android stuff stripped out.
The text was updated successfully, but these errors were encountered: