Skip to content

fix(notification): replace post_api with requests for large payload requests#2093

Merged
prathameshkurunkar7 merged 1 commit intodevelopfrom
fix-large-payloads-in-notifications-not-being-sent-issue
Mar 28, 2026
Merged

fix(notification): replace post_api with requests for large payload requests#2093
prathameshkurunkar7 merged 1 commit intodevelopfrom
fix-large-payloads-in-notifications-not-being-sent-issue

Conversation

@prathameshkurunkar7
Copy link
Copy Markdown
Member

This fixes the long pending issue of JSONDecode Error on sites in Error Logs for Notifications which had large payloads.
Hopefully we have way more notification reliability.

The post_api method in FrappeClient uses params while making POST requests which is firstly not ideal as it sends everything in URL. It should use data/json from requests lib instead. But changing core functionality in Framework might have led to potentially other issues.

The simplest fix was to either use the post_request method or simply use the requests lib directly. Went ahead with requests lib to keep the semantics not weird.

@prathameshkurunkar7 prathameshkurunkar7 merged commit 0a4bce1 into develop Mar 28, 2026
2 checks passed
@prathameshkurunkar7 prathameshkurunkar7 deleted the fix-large-payloads-in-notifications-not-being-sent-issue branch March 28, 2026 07:46
prathameshkurunkar7 added a commit that referenced this pull request Mar 28, 2026
fix(notification): replace post_api with requests for large payload requests (#2093)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant