对象在位置不存在

时间:2017-12-10 08:29:59

标签: android firebase firebase-storage

我正在为我的Android应用程序使用firebase存储。

我在Firebase崩溃报告中间歇性地看到非致命异常的最终用户报告:

country = []
info = [] 
def countryFinder(fileName,info):

    infile = open(fileName, "r")
    line = infile.readline()

    for line in infile:
        fields = line.split(":")
        country.append(fields[1].strip())
        info.append(fields[2].strip())

        return country, info

userCountry = input("Please enter a country (\"q to quit\"): ")

life = countryFinder("life.txt",info)
gini = countryFinder("gini.txt",info)



while userCountry != "q":
    if userCountry in life:
        print ("  Life Expectancy is ",life[info]," years at birth")
    else:
        print ("  No Life Expectancy Data")

    if userCountry in gini:
        print ("  Gini Value is ",gini[info])
    else:
        print ("  No Gini Data")

    userCountry = input("Please enter a country (\"q to quit\"): ")

对象存在于指定位置。对于大多数最终用户,我们没有看到这个问题。但有少数用户报告此问题。

我使用以下代码下载文件:

Exception com.google.firebase.storage.StorageException: Object does not exist at location. 
com.google.firebase.storage.FileDownloadTask.run (FileDownloadTask.java) 
com.google.firebase.storage.zzr.run (zzr.java) 
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112) 
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587) 
java.lang.Thread.run (Thread.java:818) 

这是Firebase 11.6.0中的已知问题吗?

0 个答案:

没有答案