Hello, i have one Raspberry Pi and one PC on the same network, both running the same Python script.
On the PC, I can successfully get the certificate for the challenge. However, on the Raspberry Pi, the server returns the following response:
I saved the URL and headers, then sent 10 requests from the PC, and all of them were successful. In the meantime, I copied the same request and sent it from the Raspberry Pi, but I received the error mentioned above.{"odata.error":{"code":10802,"message":{"lang": "en-US","value":"Authorization failed"}}}
The script is identical—it's literally copy-pasted from the PC to the Raspberry Pi. A week ago, the script worked fine on the Raspberry Pi as well. The only change I made recently is setting up the script to run every 10 minutes using crontab. Could it be that Cloudflare has banned the Raspberry Pi?
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 8 of 8
-
-
What are you talking about?
If "authorization failed", did you also copy for example "Authorization" header?
Was the video playback successful on your Pi? If not, then your device could have been banned. -
yes , the auth token (the same) is there
i using raspberry only for get manifest and key from a valid account , then i will play with exoplayer on my developed android app
other strange thing:
if i block request from chorme console on official site and then send as curl from raspberry , the server reply wirh cert
the only difference is pywidevine version , 1.7.0 on raspberry and 1.8.0 on pc
but one week ago the script works fine also on raspberryLast edited by fr3nsis; 7th Dec 2024 at 10:19.
-
i updated to 3.8 but same problem
if i build curl request and send with subprocess works
curl_command = "curl -X POST '" + url + "' "
for header, value in headers.items():
curl_command += f"-H '{header}: {value}' "
curl_command += "--data-raw " + cdm.service_certificate_challenge.decode('utf-8') + " "
curl_command += " > " + executable_folder + "/cert"
os.system(curl_command)
curl_command = "curl -X POST '" + url + "' "
for header, value in headers.items():
curl_command += f"-H '{header}: {value}' "
curl_command += "--data " + challenge.decode('unicode_escaped') + " "
Last edited by fr3nsis; 7th Dec 2024 at 15:39. Reason: solved
-
Today also httpx requests resulting anauthorized
Solved moving all the requests to ....Last edited by fr3nsis; 15th Dec 2024 at 04:10.
Similar Threads
-
get license url widevine
By aletaladro in forum Video Streaming DownloadingReplies: 12Last Post: 14th Nov 2023, 08:39 -
How can i make sample Widevine license server?
By treegex in forum Newbie / General discussionsReplies: 0Last Post: 27th Sep 2023, 02:13 -
Widevine Titanium DRM server
By slaptasBotas in forum Video Streaming DownloadingReplies: 14Last Post: 20th Aug 2023, 01:26 -
Onlyfans DRM license server
By dami3n in forum Video Streaming DownloadingReplies: 3Last Post: 4th May 2023, 15:30 -
browser won't play some widevine videos - license server denial?
By davidmaxwaterman in forum Newbie / General discussionsReplies: 0Last Post: 20th Mar 2023, 00:46