llama_index icon indicating copy to clipboard operation
llama_index copied to clipboard

Google credential URI changes everytime

Open aashay96 opened this issue 2 years ago • 7 comments

The issue with documentreader for google doc is that every time it uses a new port and hence the underlying URI for request changes. Can we add a port option? Screenshot 2022-12-22 at 5 59 03 PM

aashay96 avatar Dec 22 '22 12:12 aashay96

good find. yes! i'll get to this soon

jerryjliu avatar Dec 22 '22 17:12 jerryjliu

Hey @aashay96! I just took a look and I think I figured out your issue. When following these developer docs https://developers.google.com/docs/api/quickstart/python, I found that when creating credentials, if I set Application Type to Web Application, then I run into this issue. However, I set it to Desktop App and it works.

Let me know if that works for you

jerryjliu avatar Dec 22 '22 21:12 jerryjliu

@aashay96 let me know if this is still an issue - will close for now

jerryjliu avatar Dec 24 '22 18:12 jerryjliu

Still not working @jerryjliu . I run into localhost refused to connect issue when I try to approve.

aashay96 avatar Dec 25 '22 15:12 aashay96

@aashay96 are you setting Application Type to Desktop App? If you send along a code snippet I can also try to repro. Thanks!

jerryjliu avatar Dec 25 '22 17:12 jerryjliu

Yes I did set it up as Desktop App. I am just running the notebook code in colab

aashay96 avatar Dec 26 '22 06:12 aashay96

I also had the problem with redirect_uri_mismatch. But changing the application type to Desktop worked for me. I'm running a Jupyter notebook locally on my laptop.

vinceallenvince avatar Feb 05 '23 21:02 vinceallenvince

Setting to Desktop should be the solution, going to close this issue for now

jerryjliu avatar Feb 20 '23 03:02 jerryjliu