step-up-labs / firebase-storage-dotnet

C# library for Firebase Storage

Repository from Github https://github.comstep-up-labs/firebase-storage-dotnetRepository from Github https://github.comstep-up-labs/firebase-storage-dotnet

GetDownloadUrlAsync() just hanging

jackjoynson opened this issue · comments

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;
        }

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

commented

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.

commented

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