Closed priyankagaikwad closed 3 years ago
Hey @priyankagaikwad, I haven't been able to reproduce this using the latest version of aws-amplify. I see in the environment info you shared that you have @aws-amplify/pushnotification
installed as well as aws-amplify
. This may be causing conflicts. Could you please try the following steps:
npm uninstall @aws-amplify/pushnotification
rm -rf node_modules package-lock.json
npm i
npx pod-install
@iartemiev Tried still and still same error. Am I missing something while configuring Amplify? How to analyse this error then?
One more thing I'm seeing is that you have 2 different AsyncStorage dependencies installed.
Could you try deleting @react-native-community/async-storage
followed by running npx pod-install
, then re-build/re-start your app?
One more thing. Try commenting out
//aws_cloud_logic_custom: [
// {
// name: 'xxxxxx',
// endpoint:'xxxxxxx',
// region: 'xxxxxx',
// },
//],
Then update the endpoint. Are you still seeing the error then?
One more thing. Try commenting out
//aws_cloud_logic_custom: [ // { // name: 'xxxxxx', // endpoint:'xxxxxxx', // region: 'xxxxxx', // }, //],
Then update the endpoint. Are you still seeing the error then?
Yes Tried this also but no luck :(
Would be able to share your app with us or a minimal working example app exhibiting this error so that we could debug it locally?
Would be able to share your app with us or a minimal working example app exhibiting this error so that we could debug it locally?
yes I will try to create small working example with same issue.
Thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.
Any updates on this? experiencing the same error
I was getting the error when calling updateEndpoint after user signs in Error: No value provided for input HTTP label: EndpointId.
It seems like Analytics wasn't initialised and initialising as I called updateEndpoint.
Analytics.configure({
autoSessionRecord: true,
AWSPinpoint: {
appId: awsmobile.aws_mobile_analytics_app_id,
region: awsmobile.aws_mobile_analytics_app_region,
},
});
Has seemed to fix it for me now
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Analytics
Amplify Categories
auth, analytics, notifications
Environment information
Describe the bug
Analytics.updateEndpoint(attrs) .then() .catch(err => { console.log({ err }); });
getting on latest version 4.0.3 error for updateEndpoint() ERROR [ERROR] 10:23.916 AWSPinpointProvider - updateEndpoint failed [Error: No value provided for input HTTP label: EndpointId.]
Working fine on version "aws-amplify": "^3.3.2",
Expected behavior
updateEndPoint() should work without any error on latest version of aws-amplify
Reproduction steps
Code Snippet
Log output
aws-exports.js
const awsmobile = { aws_project_region: 'xxxxxx', aws_cognito_identity_pool_id: 'xxxxxx', aws_cognito_region: 'xxxxxx, aws_user_pools_id: 'xxxxxx', aws_user_pools_web_client_id: 'xxxxx', oauth: { domain:'xxxxxxxxx', scope: [ 'phone', 'email', 'openid', 'profile', 'aws.cognito.signin.user.admin', ], redirectSignIn: 'xxxxx', redirectSignOut: 'lxxxxxx', responseType: 'code', }, federationTarget: 'xxxxx', aws_user_files_s3_bucket:'xxxxx-xx', aws_user_files_s3_bucket_region: 'xxxxxxxx', aws_mobile_analytics_app_id: 'xxxxxx', aws_mobile_analytics_app_region: 'xxxxxxx', aws_cloud_logic_custom: [ { name: 'xxxxxx', endpoint:'xxxxxxx', region: 'xxxxxx', }, ], };
export default awsmobile;
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
iOS, Android
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response