Can't initiate OAuth consent screen
Opened this issue · 0 comments
dan-gheorghita commented
Problem
If on line 1798 and 1819 in the following code: creds = flow.run_local_server()
, port=0 is not passed as argument it gives error:
PermissionError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
Fix:
creds = flow.run_local_server(port=0)
Tip:
Use a function to reuse the OAuth code snippet for sheets and drive api