step-up-labs / firebase-storage-dotnet

C# library for Firebase Storage
MIT License
140 stars 35 forks source link

GetDownloadUrlAsync() just hanging #11

Closed jackjoynson closed 4 years ago

jackjoynson commented 6 years ago

I am trying to get a download url for a file already in Firebase storage - I am using the code below and have tried with and without authentication but none of the asynchronous functions are returning they just hang forever. I get no error and no timeout.

public static async Task<string> GetURL()
        {
            var authProvider = new FirebaseAuthProvider(new FirebaseConfig(LocalTools.APIKey));

            string email = LocalTools.Email;
            string password = LocalTools.Password;
            var auth = await authProvider.SignInWithEmailAndPasswordAsync(email, password);            

            var task = new FirebaseStorage(LocalTools.Bucket,
                new FirebaseStorageOptions { AuthTokenAsyncFactory = () => Task.FromResult(auth.FirebaseToken) })
                .Child(LocalTools.ProjectFileName)
                .GetDownloadUrlAsync();

            return await task;
        }
bezysoftware commented 6 years ago

Can you try sniffing the traffic using fiddler? I can't reproduce this

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

Closing the issue due to inactivity. Feel free to re-open