-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checking if entry is iterable before looping over it #34
base: master
Are you sure you want to change the base?
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.