Firebase - Invalid JSON data or key values. Key values can’t contain $ # [ ] / or

后端 未结 9 2174
陌清茗
陌清茗 2020-12-31 03:34

I\'m trying to import my JSON file into my Firebase but it keeps giving me this error. I don\'t know why this JSON file isn\'t allowed to be imported into since JSONLint say

9条回答
  •  借酒劲吻你
    2020-12-31 04:24

    This happened to me, and had a totally different cause: I had Firebase functions that triggered when data is added to certain collections. The GUI tool gave me the unhelpful error the OP got. But running with the CLI, I got:

    Error: HTTP Error: 400, This request would cause too many functions to be triggered.
    

    So, the error ended up really saving my hide since running a function for each of the few hundred nodes I was importing would have been disastrous.

    To solve the issue, I deployed my app code with the functions commented out and then was able to use the GUI to import my data. Once my data was in, I un-commented out the functions and deployed again.

提交回复
热议问题