Code crashes thunkable

Whenever this code runs, the thunkble live crashes -


Please help!!

I see a few issues:

  1. The realtime DB key does not appear to have a slash ( / ) between the values.
  2. There are muliple asynchronous calls to the realtime db. This will cause a lot of issues (see related thread and solution Wrapping Asynchronous (then do) blocks into a Synchronous Function resolves unpredictable results)
  3. Try using the CLOUD blocks. They are easier, faster, and more reliable. Here is how to make a straight conversion from realtimedb to cloud variables Thunkable Hack - Deep Firebase JSON data manipulation without using GET or SAVE Blocks
2 Likes

Where should I put the slash?

Check out the link Thunkable Hack - Deep Firebase JSON data manipulation without using GET or SAVE Blocks

1 Like

@roumak-coder,
Firebase shows the contents as tree like structure or file folder appearance. However, when coding you need “/” between keys and sub-keys or nodes and child-nodes

Example: main-key/sub-key/sub-sub-key

Hope that helps to clarify.

1 Like