Skip to content

Error fetching base onedrive url #5

@PinnacleCoders

Description

@PinnacleCoders

Hello,
I keep getiing an empty base url for onedrive.

// In GetOneDriveClientAsync(OneDriveUser user)
// Resolve the API URL for this user always returns null
                user.OneDriveBaseUrl = await LookupOneDriveUrl(user);

because of which I get an exception "Unable to parse base Url"


public OneDriveAccountServiceProvider(OneDriveUser user)
        {
           
// Always throws error
            if (!Uri.TryCreate(user.OneDriveBaseUrl, UriKind.Absolute, out baseUrl))
            {
                throw new InvalidOperationException("Unable to parse base URL: " + user.OneDriveBaseUrl);
            }

Has anybody faced this issue? Any help will be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions