Traceback (most recent call last):
File "Directory", line 444, in raise_detailed_error
request_object.raise_for_status()
File "Directory", line 862, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://areallylongURL
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/nishant/Documents/Python/Chat/setup.py", line 21, in <module>
db.child('chats').set(chats, token=save['idToken'])
File "/Users/nishant/Chat/lib/python3.7/site-packages/pyrebase/pyrebase.py", line 301, in set
raise_detailed_error(request_object)
File "/Users/nishant/Chat/lib/python3.7/site-packages/pyrebase/pyrebase.py", line 448, in raise_detailed_error
raise HTTPError(e, request_object.text)
requests.exceptions.HTTPError: [Errno 401 Client Error: Unauthorized for url: https://areallylongURL] {
"error" : "Permission denied"
}
I am trying to save data using firebase. All my credentials are correct. Code and error below. Code
Error