Discussion posts and replies are publicly visible
Can you share a snippet of the raw JSON as returned by the API?
[ { "albumId": 1, "id": 1, "title": "accusamus beatae ad facilis cum similique qui sunt", "url": "https://via.placeholder.com/600/92c952", "thumbnailUrl": "https://via.placeholder.com/150/92c952" }, { "albumId": 1, "id": 2, "title": "reprehenderit est deserunt velit ipsam", "url": "https://via.placeholder.com/600/771796", "thumbnailUrl": "https://via.placeholder.com/150/771796" } ]
Length is one of the primitive functions and as such, its use is constrained by some picky (and sometimes unintuitive) back-end stuff. I'm not sure exactly what's going on here of course but as Stefan mentioned, it might help to see some of the raw JSON data being returned. My first guess is that it's being confused by the exact data type of the ".body" result, perhaps interpreting it as an array of 1 item consisting of an array of the 5000 items we see - or something like that. a!flatten() will of course smoothe this out, explaining why the result you see with that is coming out better. That doesn't indicate a "problem" with length(), per se, as much as the fact that there are weird corner cases where its (correct) behavior is unintuitive.
Stefan Helzle , Mike Schmitt , sorry for the delay in replying.
While I was replying to your thread, my account got frozen . I am getting the following error:
"There is an issue with your user account: The allowed frequency of abusive content was exceeded (by 'Abusive User Detection by Abuse Frequency')."
Not sure what went wrong. I just entered a URL that I was using to get a JSON reply and pasted a snapshot of JSON reply. I have not added any abusive content.
Due to this, I am not able to participate in community activities as well .
Hopefully, the community admin will give access back to my account.
Please let me know if anyone have any ideas to resolve this.
Yogi Patel said:There is an issue with your user account
This has been happening to a bunch of us intermittently. I've alerted the community admins for you. They're working to straighten things out as they happen (i assume the spam filters are set too strong or something.)
There is a rule set that only allows for 2 discussion posts or replies per minute. If you exceed this amount, your account will be flagged. If you have any additional questions, please let us know. This is what i got from Community when i asked about it.
Yes, there is limit on posting comments. However, I am getting following message:
Also, till account is locked. Hence, not able to post any comments. Hopefully, community admin will unlock it.
Any chance you could try posting the raw unformatted JSON returned, representing the above 2-item array? I'd be interested to try it in an expression and see how it behaves on my end. (hopefully it won't get spammed again.)
If you open URL mentioned in the above reply, you will get full payload. Please let me know if you need any other details.
While posting the above message, my account got locked. Not sure about reason (due to URL or content).Hence, don't want to take the risk of posting it again