checking if entry is iterable before looping over it#34
Conversation
|
I'm curious as to why you need to do this? As per the docs this will always be an
https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/#payload |
|
Closing this as it's unnecessary |
|
@rickydunlop sorry just noticed this. I was actually not getting an array in some cases, that's why I added this check to avoid problems when trying to loop over a non-array values. I'll add an example tomorrow. |
|
@rickydunlop even with the latest v5.0.1 I am still getting the error that made me add a check for it. where cbot is fbmessenger |
|
Hi @aramix, Thanks for the stacktrace, it has helped me track the issue. |
No description provided.