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
[WARN] 48:37.685 DataStore - Backend subscriptions filtering error.
Subscriptions filtering will be applied clientside.
Connection failed: {"errors":[{"message":"subscription filter uses same fieldName multiple time in single filter object.","errorCode":400}]}
Your selective sync expression for User contains multiple entries for null in the same AND group.
Expected behavior
The syncExpressions should run without any filtering errors
Reproduction steps
create a model with a custom primary key
use this primary key in the model's syncExpression
Code Snippet
// Put your code below this line.DataStore.configure({syncExpressions: [syncExpression(Model,(m)=>m.user_name.eq('XXX')),],});
Log output
// Put your logs below this line
LOG [DEBUG] 48:37.677 AWSAppSyncRealTimeProvider - Connection failed: {"errors":[{"message":"subscription filter uses same fieldName multiple time in single filter object.","errorCode":400}]}
WARN [WARN] 48:37.685 DataStore - Backend subscriptions filtering error.
Subscriptions filtering will be applied clientside.
Connection failed: {"errors":[{"message":"subscription filter uses same fieldName multiple time in single filter object.","errorCode":400}]}
Your selective sync expression for User contains multiple entries for null in the same AND group.
LOG [DEBUG] 48:37.690 AWSAppSyncRealTimeProvider - Error while unsubscribing Error: Subscription never connected
LOG [DEBUG] 48:37.690 DataStore - Attempting Update subscription with authMode: userPool
LOG [DEBUG] 48:37.693 AWSAppSyncRealTimeProvider - Authenticating with "userPool"
LOG [DEBUG] 48:37.712 AWSAppSyncRealTimeProvider - subscription message from AWS AppSync RealTime: {"id":"XXX","type":"error","payload":{"errors":[{"message":"subscription filter uses same fieldName multiple time in single filter object.","errorCode":400}]}}
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered:
Hi @mhyassin, thanks for raising this issue and providing reproduction steps.
Can you confirm what version of the Amplify CLI you're using?
amplify --version
Also, if you can, please share you schema. Using a custom primary key might be enough to reproduce the issue but it might be helpful just in case there's something else we might be missing in our reproduction efforts.
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication, GraphQL API, DataStore, Storage
Amplify Version
v6
Amplify Categories
No response
Backend
None
Environment information
Describe the bug
I'm getting this issue when adding
syncExpressions
to the Datastore configurationFor more context see aws-amplify/amplify-category-api#1796
Expected behavior
The syncExpressions should run without any filtering errors
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: