-
Notifications
You must be signed in to change notification settings - Fork 12
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
Cannot signin : bot detected #187
Comments
My first thoughts:
Any other ideas ? |
Actually, the error occurs right away on the first code, we don't even get the chance to submit the 2FA code. |
The following works, not sure why it doesn't work with requests yet.
Translating this request exactly to |
@nmathey @MadeInPierre |
Note that even with httpx running from github actions doesn't work... clerk detects a bot. |
Moving away from requests shouldn't be a problem for me. |
Yes, the tests don't work from Github Actions server but they run fine from my home computer. You can try to signin with the main branch (and should get the bot detected error) and with this branch and you should get success. |
Got same error
Did your branch includes all headers additions you tested with curl?
|
See https://community.finary.com/t/api-finasync-extension-open-source/10104/24 for the current official status (by Finary CTO). The behavior described in this bug is "expected". For me, the HTTPX branch works. I tried several headers but of course, I made sure to use exactly the same one while testing. I had the same header in the main branch (using requests), with curl and with HTTPX (including forcing HTTP 1.1 when possible). Clerk does smart things for their bot detection for sure. For now, I would like to get more data. Does the main branch work for you ? Does the HTTPX branch work ? |
Sorry I'm bit confuse, and might be a dummy question, but can you confirm headers you successfully tested are hardcoded in your Httpx branch? |
@nmathey they aren't hardcoded but the HTTPX branch works for my laptop as it, without configuring anything. |
Hey!
I was using this repo as a reference for implementation (thanks for the awesome work btw), and I naively tried to set my user-agent to:
I haven't tried anything else since then, but my guess is that Clerk detects http clients that try to behave like browsers as they're probably bots most of the times, and allows clients that are transparent and saying that they're an API. So basically, I don't think it's an issue related to the http client, but it's probably linked to headers. Hope those information can help you! |
I just pushed a PR to solve that issue: #210. |
Thank you for the new look. I checked every possible combinations 6 months ago but your headers seems to just work ! It can't hurt to merge the PR. |
@all-contributors please add @clemlesne for code |
I've put up a pull request to add @clemlesne! 🎉 |
@all-contributors please add @clemlesne for code |
@clemlesne already contributed before to code |
Still getting same message with finary-uapi 0.2.1 b9a9a3f
Is that 100% time working on your side ? |
Don't you think Finary is actively monitoring our solutions here to update their bot detection with any found solution? I mean if they want to close their api it's not a big work to track this issue and ban any further solution proposed... :( |
@nmathey Locally it works for me, 100% of the time. I can run the tests without problems, and they do quite a lot of calls. You don't do any funny things ? like overriding the default headers ? Do you get this message on sign-in ? or after multiple calls ? @OxyFlax I believe they have better things to do than monitoring our conversation... Also they did provide a demo account to test the code. I'm under they impression Finary just checked a box in Clerk admin UI for bot detection and Clerk is changing their bot detection algorithm continuously |
Let me add that the tests running on Github actions are not working and we still get a "bot traffic detected". See https://github.com/lasconic/finary_uapi/actions/runs/10584142604/job/29327710214#step:8:1424 |
Yes, they provide testing tokens for development instances : https://clerk.com/docs/testing/overview#testing-tokens so they definitely do something against github actions runners. |
I'm using finary_uapi out of the box, and getting the error straight from on sign-in. |
It works for me, repeatably, for multiple days in a row. Can you share reproduction steps?
For sure that's not IP blacklist, at least for your residential IP. Those countermeasures are really rare with SaaS systems (imagine a VPN or a company proxy, you could disrupt hundred of legitimate users). |
I'm just trying the signin method (with 2FA or not):
|
This error should have raised an exception with a user-friendly format: finary_uapi/finary_uapi/signin.py Lines 61 to 63 in cf17b61
You're maybe not on the right code-base version, I guess. |
I'm not a git expert but my understanding is I'm using latest branch : am I correct ?
|
See https://community.finary.com/t/api-finasync-extension-open-source/10104/20
After a call to
signin
we getThe text was updated successfully, but these errors were encountered: