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
Just trying to upload a text file. The url I requested didn't exist beforehand, but I received a different error than usual. I uploaded the file manually, but the raw function still generates the same error even though it does contain text now.
Traceback (most recent call last):
File "C:\Users\*\appdata\roaming\python\python312\site-packages\rentry.py", line 41, in raw
return json_loads(client.get('https://rentry.co/api/raw/{}'.format(url)).data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\*\appdata\roaming\python\python312\site-packages\rentry.py", line 25, in get
return self._request(request)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\*\appdata\roaming\python\python312\site-packages\rentry.py", line 33, in _request
response = self.opener.open(request)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\*\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 521, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\*\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 630, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "C:\Users\*\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 559, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\*\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 492, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Users\*\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 639, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
The text was updated successfully, but these errors were encountered:
Even directly requesting the url still receives the same error. The other functions work though. Is this related to the fact that the raw function doesn't create a csrftoken?
Just trying to upload a text file. The url I requested didn't exist beforehand, but I received a different error than usual. I uploaded the file manually, but the raw function still generates the same error even though it does contain text now.
The text was updated successfully, but these errors were encountered: