You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am repeatedly experiencing this error. It is the response OneSignal gives when making the POST request to send the notification.
GuzzleHttp\Exception\ClientException
Client error: `POST https://onesignal.com/api/v1/notifications` resulted in a `400 Bad Request` response:
{"errors":["include_external_user_ids must be an array of non empty strings"]}
Thank you, this solves the problem. It seems that onesignal has updated the API to better validate this, as previously an array of integers was sufficient to send the notification. PR #132 clarifies the documentation.
I am repeatedly experiencing this error. It is the response OneSignal gives when making the POST request to send the notification.
I guess it is because an empty array is being passed to
include_external_user_ids
in the line 37 of OneSignalPayloadFactoryHowever these ids come directly from the
routeNotificationForOneSignal
method in theUser
model. Which is declared as followsThe id of my database in the
users
table cannot be null. Therefore I deduce that if this array is being filled with the id of the user.This is what the payload looks like just before it is sent by the Berkayk\OneSignal package
I am using
This error has more than 5k occurrences in the last two days.
You can see a full report here.
Any suggestions on how to fix?
The text was updated successfully, but these errors were encountered: