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
feat: rewrite notification using requests lib (#2098)
* feat: add make_api_call function for making authenticated API requests
* refactor(notification): replace FrappeClient with make_api_call for API requests in notification handling
* fix(notification): correct token sync error handling in raven_cloud_notifications.py
* chore: bump version to 2.8.10
Make a post call to the push notification server to send the notification
210
211
"""
211
-
frombase64importb64encode
212
-
213
-
importrequests
214
-
215
212
# instead of using the frappe client, we will use the requests library to make the post call
216
213
# reason: FrappeClient's post_api method sends data in params which is not ideal for large payloads(Proxy returns JSON Decode errors as the URL is too long)
217
214
# and post_request method uses "cmd" based key in it's payload which is weird semantically
0 commit comments