Hi, after I authorized the OAuth, I clicked ‘create new sheet’ button, but it opened the login page again , I checked the path ‘library/google/google sheets provider’ and found nothing. How can I fix it? Also, I tried a gspread lib in python and got the spreadsheet successfully, so I think not the issue of google api.
I’m not sure what that could be. Maybe it’s unable to create the token file in the library folder. Does it require admin rights to write to that folder?
No.There was no warning or error in unity console after I clicked the authorize button. It has create the path library/Google/{name}, but no token saved in.
I’m chinese and use V2ray to access google, so maybe a network issue? And I can get a ‘authorized_user.json’ through gspread in python, the difference is the gspread use a local host. Is it possible to put the json in the library/Google/{name} to replace the token?
Anyway ,thank you for your reply.
Im not sure about putting the json in the folder. We are using the Google Sheets API, you may need to do something to get it to work with a proxy. Maybe something like this? Hidup dengan Buruk: Menggunakan Server Proxy dengan Library Klien Google Data API | Google Data APIs | Google for Developers
Could you tell me the name and format of the token file?
Thanks.
I have no idea. Its a google API, we ddint create it. .NET 版 Google 表格 API 客户端库 | API Client Library for .NET | Google for Developers
Hi,I managed to run a ‘GoogleWebAuthorizationBroker.AuthorizeAsync’ method in my own project and got the token (so strange) . Then I put it in library folder, it seems works.
But when I create, select sheets , push or pull. Everything no responding.
I guess this because the extension didn’t follow my proxy, even if I set a global proxy. I tried this
It seems work for unity(I can see Plastic SCM), but the extension still can’t follow my proxy.
I’m so noob with network. Do you have any idea? Thanks.
Im not sure how to handle proxies, we are using the Google Sheets API so maybe theres something extra we need to do to handle this. You can try embedding the package by moving it from the package cache folder into the project Packages folder. You can then make changes to the code and try and add the support you need.
Its probably something in AuthorizeOAuthAsync in com.unity.localization/Editor/Plugins/Google/SheetsServiceProvider.cs
I found the clash has a ‘Tun mode’ can solve the problem.
Anyway, thank you for the reply!
Thank you so much!
I solved the same problem!



