VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 8 of 8
  1. 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:

    {"odata.error":{"code":10802,"message":{"lang": "en-US","value":"Authorization failed"}}}
    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.

    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?
    Quote Quote  
  2. Banned
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    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.
    Quote Quote  
  3. Originally Posted by CrymanChen View Post
    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 raspberry
    Last edited by fr3nsis; 7th Dec 2024 at 10:19.
    Quote Quote  
  4. change user agent? ensure the system time is not out of sync too
    Quote Quote  
  5. Edit
    ...
    Last edited by psp95; 7th Dec 2024 at 23:56. Reason: BadSolution
    Quote Quote  
  6. 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)
    but now i cant send post with challenge bytes ... i have always bad request

    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') + " "
    solved using httpx library instead requests
    Last edited by fr3nsis; 7th Dec 2024 at 15:39. Reason: solved
    Quote Quote  
  7. Today also httpx requests resulting anauthorized
    Solved moving all the requests to ....
    Last edited by fr3nsis; 15th Dec 2024 at 04:10.
    Quote Quote  
  8. As soon as the solution is published 24 hours later it is banned
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!