Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document update conflict reported in feedback docs #7148

Closed
binokaryg opened this issue Jun 16, 2021 · 2 comments · Fixed by #8547
Closed

Document update conflict reported in feedback docs #7148

binokaryg opened this issue Jun 16, 2021 · 2 comments · Fixed by #8547
Assignees
Labels
Type: Bug Fix something that isn't working as intended
Milestone

Comments

@binokaryg
Copy link
Member

Describe the bug
In the month of May 2021, the feedback documents for brac-ug (3.9.2) had this error recorded 38 times from 31 users:

Possibly unhandled rejection: {"status":409,"name":"conflict","message":"Document update conflict","error":true}

Most of these are from the tasks page, and others from the contacts and targets page:

Location based on URL Count (May 2021)
Tasks page 26
Contacts page 6
Targets page 2
Specific contact 1
Family survey form from contact 1
Family survey task 1
About page 1

Logs

Here is the top-level argument for each of the 38 incidents (brac-ug, May 2021):

Level Arguments Count
warn db.type() is deprecated and will be removed in a future version of PouchDB 18
error Error updating _local/rulesStateStore: {\"status\":409,\"name\":\"conflict\",\"message\":\"Document update conflict\"} 7
warn MaxListenersExceededWarning","2":"Possible EventEmitter memory leak detected. 11 \"destroyed\" listeners added. Use emitter.setMaxListeners() to increase limit. 4
warn No active pages found. Make sure your form has at least one relevant input. 4
info The above 404 is totally normal. PouchDB is just checking if a remote checkpoint exists. 4
log Data node: /*/meta/deprecatedID with null-based index: undefined not found. Ignored. 1

Environment

  • Instance: brac-ug.app.medicmobile.org
  • Version: 3.9.2

Additional context
This error is being recorded every month since we started collecting the feedback docs in August 2020, the highest being 80 times in September 2020, followed by 75 times in March 2021 for brac-ug.

Similar error is also recorded for pih-malawi every month, although less frequent (1-14 times a month).

@dianabarsan dianabarsan self-assigned this Jun 18, 2021
@kennsippell
Copy link
Member

roughly 163 docs matching this pattern this month for PIH production data

@garethbowen garethbowen added the Type: Bug Fix something that isn't working as intended label Sep 12, 2022
@dianabarsan
Copy link
Member

I'm hitting the Error updating _local/rulesStateStore: {\"status\":409,\"name\":\"conflict\",\"message\":\"Document update conflict\"} error consistently in an e2e test once I started recording feedback docs every time console.error is called.

@dianabarsan dianabarsan linked a pull request Oct 20, 2023 that will close this issue
5 tasks
@garethbowen garethbowen added this to the 4.5.0 milestone Oct 25, 2023
@garethbowen garethbowen changed the title Feedback docs: "409: Document update conflict" Document update conflict reported in feedback docs Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Fix something that isn't working as intended
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants