正在将Polymerfire(firebase文档)获取到回调错误事件?

正在将Polymerfire(firebase文档)获取到回调错误事件?,firebase,polymer,firebase-realtime-database,firebase-polymer,polymerfire,Firebase,Polymer,Firebase Realtime Database,Firebase Polymer,Polymerfire,在请求失败后,如何让firebase文档回调错误事件?(或者至少是请求已完成的通知,以便我可以强制检查响应以查看是否收到预期数据?) 例如,如果我在路径中输入了一个非法字符,比如一个点() <firebase-document id="doc" app-name="app" data="{{user}}"> </firebase-document> <script> ... thi

在请求失败后,如何让
firebase文档
回调错误事件?(或者至少是请求已完成的通知,以便我可以强制检查响应以查看是否收到预期数据?)

例如,如果我在路径中输入了一个非法字符,比如一个点(

<firebase-document id="doc"
                   app-name="app"
                   data="{{user}}">
</firebase-document>
<script>
...
  this.$.doc.path = 'email-address/user@example.com'; // Dot not accepted
...
</script>

...
此.$.doc.path='电子邮件地址/user@example.com'; // Dot不接受
...
我得到以下错误消息:

未捕获错误:Firebase.child失败:第一个参数是无效路径:“电子邮件地址”/user@example.com". 路径必须是非空字符串,并且不能包含“.”、“$”、“[”或“]”

似乎应该自动触发
错误
事件(或某事)

如何获得异常回调或至少是响应已完成的通知