-
Notifications
You must be signed in to change notification settings - Fork 32
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
Error when using with multiple sharepoint sites #31
Comments
Thanks for reporting an issue. I'll investigate what it might be. |
After running it through delve, it appears the issue might be with the getRealm function. In my case, both of the sites I want to access reside at the same host URL with different paths. So it is reusing the cacheKey. If I comment out the caching bits, everything runs fine. |
That's strange as not only host but also strategy and part of secrets act as a cache key: cacheKey := parsedURL.Host + "@addinonly@" + c.ClientID + "@" + c.ClientSecret
if accessToken, found := storage.Get(cacheKey); found {
return accessToken.(string), nil
} UPD: Oh, got it, |
Thanks for looking into this. Here is what I'm referencing: Line 173 in 21f34db
|
@homebrew79, thank you so much for assisting finding the issue, I appreciate it! |
That seems to have fixed it. I will do some more extensive testing, but I think this can be closed. Thanks for the quick response! |
Thanks for using the package! |
Describe the bug
Trying to use addin auth strategy across multiple sharepoint online sites. Specifically using chunked file upload.
The file uploads fine to the first site, but when uploading to the second site, I receive the following error:
unable to request api: invalid character '<' looking for beginning of value
Versions
Sharepoint Online
github.com/koltyakov/gosip v0.0.0-20200628141644-21f34db9ce21
To Reproduce
Expected behavior
Expect for file to upload to both sites without error.
The text was updated successfully, but these errors were encountered: