我关注this post并且解决了以下内部错误我在部署后的应用程序进行Firebase Firestore调用时获得的错误。
com.google.firebase.firestore.FirebaseFirestoreException: INTERNAL: An internal error occurred.
at com.google.android.gms.internal.zzevs.zzf(Unknown Source)
at com.google.android.gms.internal.zzenb.zza(Unknown Source)
at com.google.android.gms.internal.zzeoa.zza(Unknown Source)
at com.google.android.gms.internal.zzenf.zza(Unknown Source)
at com.google.android.gms.internal.zzett.zza(Unknown Source)
at com.google.android.gms.internal.zzett.zza(Unknown Source)
at com.google.android.gms.internal.zzetu.zzb(Unknown Source)
at com.google.android.gms.internal.zzeup.zzcg(Unknown Source)
at com.google.android.gms.internal.zzeth.zzcg(Unknown Source)
at com.google.android.gms.internal.zzevi.zzch(Unknown Source)
at com.google.android.gms.internal.zzfmg.zzch(Unknown Source)
at io.grpc.internal.zzac.zzdep(Unknown Source)
at io.grpc.internal.zzaq.run(Unknown Source)
at io.grpc.internal.zzeo.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at com.google.android.gms.internal.zzeuu$zza.run(Unknown Source)
at java.lang.Thread.run(Thread.java:818)
Caused by: com.google.android.gms.internal.zzfok: INTERNAL: An internal error occurred.
at com.google.android.gms.internal.zzfof.zzddl(Unknown Source)
这是我在另一台已部署应用的设备上遇到的2个错误。
在添加侦听Firestore中一个集合的更改的侦听器时,会抛出第一个 INTERNAL 错误:
com.google.firebase.firestore.FirebaseFirestoreException: INTERNAL: An internal error occurred.
at com.google.android.gms.internal.zzevs.zzf(Unknown Source:22)
at com.google.android.gms.internal.zzenb.zza(Unknown Source:30)
at com.google.android.gms.internal.zzeoa.zza(Unknown Source:126)
at com.google.android.gms.internal.zzenf.zza(Unknown Source:2)
at com.google.android.gms.internal.zzett.zza(Unknown Source:92)
at com.google.android.gms.internal.zzett.zza(Unknown Source:0)
at com.google.android.gms.internal.zzetu.zzb(Unknown Source:2)
at com.google.android.gms.internal.zzeup.zzcg(Unknown Source:28)
at com.google.android.gms.internal.zzeth.zzcg(Unknown Source:50)
at com.google.android.gms.internal.zzevi.zzch(Unknown Source:2)
at com.google.android.gms.internal.zzfmg.zzch(Unknown Source:4)
at io.grpc.internal.zzac.zzdep(Unknown Source:40)
at io.grpc.internal.zzaq.run(Unknown Source:6)
at io.grpc.internal.zzeo.run(Unknown Source:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at com.google.android.gms.internal.zzeuu$zza.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
Caused by: com.google.android.gms.internal.zzfok: INTERNAL: An internal error occurred.
at com.google.android.gms.internal.zzfof.zzddl(Unknown Source:2)
at com.google.android.gms.internal.zzevs.zzf(Unknown Source:0)
at com.google.android.gms.internal.zzenb.zza(Unknown Source:30)
at com.google.android.gms.internal.zzeoa.zza(Unknown Source:126)
at com.google.android.gms.internal.zzenf.zza(Unknown Source:2)
at com.google.android.gms.internal.zzett.zza(Unknown Source:92)
at com.google.android.gms.internal.zzett.zza(Unknown Source:0)
at com.google.android.gms.internal.zzetu.zzb(Unknown Source:2)
at com.google.android.gms.internal.zzeup.zzcg(Unknown Source:28)
at com.google.android.gms.internal.zzeth.zzcg(Unknown Source:50)
at com.google.android.gms.internal.zzevi.zzch(Unknown Source:2)
at com.google.android.gms.internal.zzfmg.zzch(Unknown Source:4)
at io.grpc.internal.zzac.zzdep(Unknown Source:40)
at io.grpc.internal.zzaq.run(Unknown Source:6)
at io.grpc.internal.zzeo.run(Unknown Source:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at com.google.android.gms.internal.zzeuu$zza.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
尝试在Firestore集合中添加文档时抛出第二个 PERMISSION_DENIED
com.google.firebase.firestore.FirebaseFirestoreException: PERMISSION_DENIED: Missing or insufficient permissions.
at com.google.android.gms.internal.zzevs.zzf(Unknown Source:22)
at com.google.android.gms.internal.zzeoa.zzc(Unknown Source:26)
at com.google.android.gms.internal.zzeoa.zzb(Unknown Source:6)
at com.google.android.gms.internal.zzenf.zzb(Unknown Source:2)
at com.google.android.gms.internal.zzett.zze(Unknown Source:73)
at com.google.android.gms.internal.zzett.zzb(Unknown Source:0)
at com.google.android.gms.internal.zzetv.zzb(Unknown Source:2)
at com.google.android.gms.internal.zzetd.zza(Unknown Source:83)
at com.google.android.gms.internal.zzetd.zza(Unknown Source:15)
at com.google.android.gms.internal.zzetd.zza(Unknown Source:0)
at com.google.android.gms.internal.zzeth.zzb(Unknown Source:53)
at com.google.android.gms.internal.zzevi.zza(Unknown Source:2)
at com.google.android.gms.internal.zzfmg.zza(Unknown Source:4)
at io.grpc.internal.zzv.zza(Unknown Source:7)
at io.grpc.internal.zzx.zza(Unknown Source:0)
at io.grpc.internal.zzx.zza(Unknown Source:0)
at io.grpc.internal.zzx$zza.zzc(Unknown Source:12)
at io.grpc.internal.zzx$zza.zza(Unknown Source:0)
at io.grpc.internal.zzad.zzdep(Unknown Source:15)
at io.grpc.internal.zzaq.run(Unknown Source:6)
at io.grpc.internal.zzeo.run(Unknown Source:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at com.google.android.gms.internal.zzeuu$zza.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
Caused by: com.google.android.gms.internal.zzfok: PERMISSION_DENIED: Missing or insufficient permissions.
at com.google.android.gms.internal.zzfof.zzddl(Unknown Source:2)
at com.google.android.gms.internal.zzevs.zzf(Unknown Source:0)
at com.google.android.gms.internal.zzeoa.zzc(Unknown Source:26)
at com.google.android.gms.internal.zzeoa.zzb(Unknown Source:6)
at com.google.android.gms.internal.zzenf.zzb(Unknown Source:2)
at com.google.android.gms.internal.zzett.zze(Unknown Source:73)
at com.google.android.gms.internal.zzett.zzb(Unknown Source:0)
at com.google.android.gms.internal.zzetv.zzb(Unknown Source:2)
at com.google.android.gms.internal.zzetd.zza(Unknown Source:83)
at com.google.android.gms.internal.zzetd.zza(Unknown Source:15)
at com.google.android.gms.internal.zzetd.zza(Unknown Source:0)
at com.google.android.gms.internal.zzeth.zzb(Unknown Source:53)
at com.google.android.gms.internal.zzevi.zza(Unknown Source:2)
at com.google.android.gms.internal.zzfmg.zza(Unknown Source:4)
at io.grpc.internal.zzv.zza(Unknown Source:7)
at io.grpc.internal.zzx.zza(Unknown Source:0)
at io.grpc.internal.zzx.zza(Unknown Source:0)
at io.grpc.internal.zzx$zza.zzc(Unknown Source:12)
at io.grpc.internal.zzx$zza.zza(Unknown Source:0)
at io.grpc.internal.zzad.zzdep(Unknown Source:15)
at io.grpc.internal.zzaq.run(Unknown Source:6)
at io.grpc.internal.zzeo.run(Unknown Source:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at com.google.android.gms.internal.zzeuu$zza.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
根据@ sam-stern this post的评论之一,代码应该没有问题,因为它已经工作了好几个月了,我现在还没有提供任何代码。但如果有人觉得有必要,我很乐意提供。
@Sam Stern还有另一条评论说要在遇到同样的错误时与他联系。但是我不知道如何直接联系到你,因此在这里发布了这个问题。
我的问题是清除应用数据是否是删除这些例外的唯一解决方案,或者是否有一些正确的方法可以使其正常工作。