Console.log() displays different results in Live and preview mode

I am really lost :frowning:
When I preview the code below, it works totally fine! I receive an array (interest_array) and a string (the usertags…which are the result of a query from another database) in the console. After moving to live mode, the code does not appear in the console and there is no error. (Btw: The code is a page code. )

  1. I have checked the permission and for now, all of the options are set to “Anyone.”
  2. Their is exact the same data in the Sandbox as in the live database of “user_interest.”
  3. If I position the console.log(usertags) before querying from “user_interest,” the console displays data. As soon as console.log(usertags) is placed in the query, however, the displayed string “disappears” from the console.
  4. If there is only the query from the “user_interest” collection, I can actually receive results in the live version, as well. Nevertheless, I need to chain the first query, with the “user_interest” query for some further steps.


Any hints?

Hi,
Please share more of the relevant code so we can inspect.