State your question
I am trying to send message to pinpoint users from Lambda but it fails with a response 'No endpoints found for userId'. I have followed the manual setup where-in, I am updating userId after registration through iOS code and I can see that the endpoint is properly updated with UserId set to the one that I provided with 'OptOut' set to 'NONE'. Also, I have tested messaging from Pinpoint and it works. The only issue I have is to publish a message from Lambda to Pinpoint. I am not sure if I am doing anything wrong here.
Which AWS Services are you utilizing?
Pinpoint, Lambda
Provide code snippets (if applicable)
Swift:
Lambda:
Lambda Result:
{"SendUsersMessageResponse":{"ApplicationId”:”xxxxxxxxx”,”RequestId":"fbdb4315-690e-11e9-8d19-0f8d87c990b4","Result”:{“\”xxxxxxx\””:{“”:{“Address":"","DeliveryStatus":"PERMANENT_FAILURE","StatusCode":400,"StatusMessage":"No endpoints found for userId."}}}}}
Environment(please complete the following information):
Device Information (please complete the following information):
Device: [e.g. iPhone6, Simulator]iPhone X
iOS Version: [e.g. iOS 11.4]iOS 12.2
Specific to simulators: Running on actual device
If you need help with understanding how to implement something in particular then we suggest that you first look into our developer guide. You can also simplify your process of creating an application, as well as the associated backend setup by using the Amplify CLI.
State your question I am trying to send message to pinpoint users from Lambda but it fails with a response 'No endpoints found for userId'. I have followed the manual setup where-in, I am updating userId after registration through iOS code and I can see that the endpoint is properly updated with UserId set to the one that I provided with 'OptOut' set to 'NONE'. Also, I have tested messaging from Pinpoint and it works. The only issue I have is to publish a message from Lambda to Pinpoint. I am not sure if I am doing anything wrong here.
Which AWS Services are you utilizing? Pinpoint, Lambda Provide code snippets (if applicable) Swift:
Lambda:
Lambda Result: {"SendUsersMessageResponse":{"ApplicationId”:”xxxxxxxxx”,”RequestId":"fbdb4315-690e-11e9-8d19-0f8d87c990b4","Result”:{“\”xxxxxxx\””:{“”:{“Address":"","DeliveryStatus":"PERMANENT_FAILURE","StatusCode":400,"StatusMessage":"No endpoints found for userId."}}}}}
Environment(please complete the following information):
Device Information (please complete the following information):
If you need help with understanding how to implement something in particular then we suggest that you first look into our developer guide. You can also simplify your process of creating an application, as well as the associated backend setup by using the Amplify CLI.