google drive direct links sometimes give a 403 error and i have no idea why my brain is dying
./tests.py::Tests::test_all_filenames Failed with Error: 403 Client Error: Forbidden for url: https://doc-0o-ao-docs.googleusercontent.com/docs/securesc/kons7a83lkihmomdfp7b1n8qrfa30028/qmbnv2ptbosqa7mus8l7otng6uavchsp/1632883575000/13607781320158116488/10606841138813538634Z/15vTKRt2CeCYo4ClSTPrR7V0BOaC-A1cM?e=download&nonce=arhbts7cetnv0&user=03449277037837384779Z&hash=39b96ulppi6hvpbmjg8m2tja5aamtnqf
For more information check: https://httpstatuses.com/403
File "/home/huantian/.pyenv/versions/3.9.5/lib/python3.9/unittest/case.py", line 59, in testPartExecutor
yield
File "/home/huantian/.pyenv/versions/3.9.5/lib/python3.9/unittest/case.py", line 593, in run
self._callTestMethod(testMethod)
File "/home/huantian/.pyenv/versions/3.9.5/lib/python3.9/unittest/case.py", line 550, in _callTestMethod
method()
File "/home/huantian/Documents/Programming/Python/pyvitals/tests/tests.py", line 87, in test_all_filenames
for result in results:
File "/home/huantian/.pyenv/versions/3.9.5/lib/python3.9/multiprocessing/pool.py", line 870, in next
raise value
File "/home/huantian/.pyenv/versions/3.9.5/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/huantian/Documents/Programming/Python/pyvitals/tests/tests.py", line 82, in test
raise e
File "/home/huantian/Documents/Programming/Python/pyvitals/tests/tests.py", line 79, in test
pyvitals.get_filename_from_url(client, url)
File "/home/huantian/Documents/Programming/Python/pyvitals/pyvitals/main.py", line 141, in get_filename_from_url
r.raise_for_status()
File "/home/huantian/.pyenv/versions/3.9.5/envs/pyvitals/lib/python3.9/site-packages/httpx/_models.py", line 1402, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: 403 Client Error: Forbidden for url: https://doc-0o-ao-docs.googleusercontent.com/docs/securesc/kons7a83lkihmomdfp7b1n8qrfa30028/qmbnv2ptbosqa7mus8l7otng6uavchsp/1632883575000/13607781320158116488/10606841138813538634Z/15vTKRt2CeCYo4ClSTPrR7V0BOaC-A1cM?e=download&nonce=arhbts7cetnv0&user=03449277037837384779Z&hash=39b96ulppi6hvpbmjg8m2tja5aamtnqf
For more information check: https://httpstatuses.com/403```