-
Notifications
You must be signed in to change notification settings - Fork 11
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
corrupt cursor in contacts list #13
Comments
Thanks for the info and sorry you had problems. I will pass this on to the relevant team members for investigation |
@dp-rufus has this been investigated? it is now happening even more frequently |
Hi Alex When this problem occurs (intermittent but increasingly frequent),
Thanks for your help |
We are using the python sdk We get the following error: Stack trace: We started with limit 25 but then that stopped working so we went to random between 20 and 30. That now no longer works. I think the cursors are getting corrupted somehow and then not being removed. |
Thanks for the info, I've found your stacktraces on our side. Please bear with me while I figure out the root cause and how to address it (I don't think it's related to cursors, surprisingly) |
Great. Thank you. Looking forward to seeing the solution. |
We're tracking the issue internally as DP-45739 In the meantime please consider adding retry logic on your side. If you subclass DialpadClient you can attach a custom urllib3 Retry policy with an adaptor: from urllib3.util import Retry
from requests.adapters import HTTPAdapter
retry_policy = Retry(.............................)
retry_adapter = HTTPAdapter(max_retries=retry_policy)
class BetterDialpadClient(DialpadClient):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._session.mount("https://", retry_adapter) |
I'll give that a try and let you know if the issue continues.
Thank you for creating the internal issue and tracking for us. Much
appreciated.
…-Alex
On Mon, Jan 31, 2022 at 8:48 PM dp-rufus ***@***.***> wrote:
We're tracking the issue internally as DP-45739
In the meantime please consider adding retry logic on your side.
If you subclass DialpadClient you can attach a custom urllib3 Retry policy
with an adaptor:
from urllib3.util import Retryfrom requests.adapters import HTTPAdapter
retry_policy = Retry(.............................)retry_adapter = HTTPAdapter(max_retries=retry_policy)
class BetterDialpadClient(DialpadClient):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._session.mount("https://", retry_adapter)
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOP6VYHTGJT4JWRCKXK47LUY5QZ7ANCNFSM5KESZWOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
How is work on the fix going? |
any updates here? |
Hey @alexkunger, looks like @dp-rufus is no longer active here. @bendialpad, is this something you can triage with your team? |
We were not able to use the python sdk to pull the full contact list. It would error in a bad iterator on the second page of results from the rest api.
We resolved the issue by adding a limit param to the list call and then running the request once and then removing the limit param and the full request succeeded.
It seem the cursor on your server was somehow corrupt and then when a new one was issued it resolved itself.
The error was persistent over multiple days until we added that limit param.
The text was updated successfully, but these errors were encountered: