I'm hitting the same issue (can't reopen issue #8413 so i create new issue here) with the latest rxdb 17.3 installed using npm.
Google Drive api scope: https://www.googleapis.com/auth/drive.file
I can't use the broad scope https://www.googleapis.com/auth/drive coz users won't use.
It seems RxDB expect etag in response from Google Drive but none found:
PUT https://www.googleapis.com/upload/drive/v2/files/xxx?uploadType=media 412 (Precondition Failed)
Replication error: RxError (RC_PUSH):
RxDB Error-Code: RC_PUSH.
Hint: Error messages are not included in RxDB core to reduce build size.
To show the full error messages and to ensure that you do not make any mistakes when using RxDB,
use the dev-mode plugin when you are in development mode: https://rxdb.info/dev-mode.html?console=error
Find out more about this error here: https://rxdb.info/errors.html?console=errors#RC_PUSH
--------------------
Parameters:
pushRows: [
{
"assumedMasterState": null,
"newDocumentState": {
"id": "1780175927639-04509406390697148",
"year": 2026,
"messages": [xxx],
"_deleted": false
}
}
]
errors: {"name":"Error","message":"ensureNotFalsy() is falsy: etag","stack":"Error: ensureNotFalsy() is falsy: etag \n
at ensureNotFalsyThrow (https://localhost:4200/@fs/C:/Aimav/aimav-w/.angular/cache/21.2.13/aimav-w/vite/deps/chunk-4SBL46VD.js?v=5d08d5e3:1393:9) \n
at ensureNotFalsy (https://localhost:4200/@fs/C:/Aimav/aimav-w/.angular/cache/21.2.13/aimav-w/vite/deps/chunk-4SBL46VD.js?v=5d08d5e3:1397:5) \n
at https://localhost:4200/@fs/C:/Aimav/aimav-w/.angular/cache/21.2.13/aimav-w/vite/deps/rxdb_plugins_replication-google-drive.js?v=5d08d5e3:10122:13 \n
at Generator.next (<anonymous>) \n
at fulfilled (https://localhost:4200/@fs/C:/Aimav/aimav-w/.angular/cache/21.2.13/aimav-w/vite/deps/chunk-RSHFFPKK.js?v=5d08d5e3:73:24)"}
direction: "push"
at newRxError (rx-error.js:105:10)
at RxGoogleDriveReplicationState2.<anonymous> (index.js:259:48)
at Generator.throw (<anonymous>)
at rejected (chunk-RSHFFPKK.js:80:29)
I'm hitting the same issue (can't reopen issue #8413 so i create new issue here) with the latest rxdb 17.3 installed using npm.
Google Drive api scope: https://www.googleapis.com/auth/drive.file
I can't use the broad scope https://www.googleapis.com/auth/drive coz users won't use.
It seems RxDB expect etag in response from Google Drive but none found: