-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot client.fetchCalendars(); #240
Comments
Alright, so I added the client.login() and it is missing multiple parameters.
|
note: this is tsdav: 2.1.3 |
Alright, so I figured out how to get the refresh token by changing the auth code to get the code and then requesting the tokens but was still getting an error in tsDav in the login() function, 'cannot find homeUrl'. Getting the refresh_token was not clearly defined in anything. The final issue was that I had calendar.readonly, that is all that was needed. However, that seems to block parts of tsDav and throws the homeURL error. However, that error is extremely vague and makes it look like there is an issue in my code, that I have a bad key, missing a parameter, or incorrectly using tsDAV. After hours of trying to figure out what I am doing wrong, looking for bugs in the auth and tsDAV, I found the response from propfind that reported an error from Google that I had no access to the data (because I only had events.read instead of full access. I would highly recommend reporting the actual errors that the remote server is reporting rather than a vauge "no url" error override that does not help to debug any issues. |
We are working on trying to display calendar data to users and as this is my first time working with tsdav I'm sure that I'm missing something. Unfortunately, the error "Error: no account for fetchCalendars" doesn't really mean much and I can't see any error code lookups.
I have tried to add in "username: '@gmail.com'," to the DAVClient() call to see if it wanted the account name with the other credentials, but I have the same error.
Since I am not using a username/password, I am not getting any refresh token, but I was expecting that the access token would work for 60 mins based on the auth. I was going to worry about refreshing and cleaning after I had any data flowing in the first place.
What am I doing wrong?
Error message
The text was updated successfully, but these errors were encountered: