-
-
Couldn't load subscription status.
- Fork 2.9k
Restore requests support #2505
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
base: dev
Are you sure you want to change the base?
Restore requests support #2505
Conversation
|
Bad news. Works fine for a few requests but after ~10 I get error:
Tried with and without rate limiting. Must be a problem with curl_adapter. @deeleeramone what is your experience? |
|
@el1s7 hope you don't mind me tagging you as owner of curl_adapter. yfinance works fine with curl_cffi, not so well with your adapter (see previous message). Can you provide any insight into differences between them? |
Hi @ValueRaider , It's unclear if the 401 unauthorized error that you're getting is related to The current version of the library passes all the tests and it works the same as requests library. I'm also about to release a new version soon with further stability & performance improvements. |
So far it's been alright, although I am pinned to 0.2.58. I'm not getting rate-limiting issues, and doing Had some busy weeks, so haven't been able to give you a decent answer here, sorry! |
Don't know. Put a |
|
It seems to be doing a retry effort, but TBH, I'm not sure what I'm looking for. I do see it toggling between cookie strategies, so retrying until it hits, and doesn't seem to fail. It could explain the reduction in speed, which is not detrimental. Anecdotally, |
If session object is not overwritten then connection pooling should work. |
|
Just trying this library for the first time today. Immediately hit:
In your Session usage, please add: |
Thanks to @deeleeramone #2486 (comment), learnt that requests can work if it has a curl_adapter.
Confirmed working with rate limiter. Also works with requests_cache, but probably always misses cache because of crumb changing.