-
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
implement refresh session / re-init #27
Comments
before a request is made, could prob check if the request is a 401, refresh the token if so, and then try again |
by the way, you're looking for com.atproto.server.refreshSession iirc. |
will be resolved soon in atproto sdk MarshalX/atproto#12 |
it has been added in atproto sdk 0.0.6! MarshalX/atproto#27 |
@MarshalX I seem to be getting an error in 0.0.6
the final two lines are unique, as the stacktrace is 2000+ lines long |
@Scrxtchy could you show the output of from datetime import datetime, timezone
d = datetime.now(timezone.utc)
print(d) from the machine where you are getting the error pls |
ah, I think I found this bug. will be fixed asap, thank you! |
thanks, and if it's of any future use >>> from datetime import datetime, timezone
d = datetime.now(timezone.utc)
print(d)>>> d = datetime.now(timezone.utc)
>>> print(d)
2023-05-20 14:30:28.278565+00:00 I should be reporting this on the right repo, sorry |
@Scrxtchy fixed in 0.0.7 (MarshalX/atproto#33). Pls let me know is everything fine |
atprototools/atprototools/__init__.py
Line 40 in 52b0466
The text was updated successfully, but these errors were encountered: