tedchou12 / webull

Unofficial APIs for Webull.
MIT License
596 stars 181 forks source link

I get the error "{'msg': 'Fail to verify image verification code.', 'traceId': '630E61EFB31443CE80BFE220CD764856', 'code': 'user.check.slider.pic.fail'}" #416

Open vishnuav opened 11 months ago

vishnuav commented 11 months ago

Hello, I get the below error message: {'msg': 'Fail to verify image verification code.', 'traceId': '630E61EFB31443CE80BFE220CD764856', 'code': 'user.check.slider.pic.fail'}

this is what I use: webull_email = '**@gmail.com'

wb = webull()

result = wb.login(webull_email, '*****', 'webull-api-1', '990372')

ICANTFINDAUSERNAMEATALL commented 7 months ago

https://github.com/tedchou12/webull/wiki/Workaround-for-Login-%E2%80%90-Method-2

You just need to verify it on your own browser, inspect and get the did(device id) of your browser, and then manually set that as the did in the webull object before you use the login. This way, webull will think that you are logging in from the verified browser. Look around in Method 1/2 if you need help getting the did. You can ignore everything else(I think).

worthapenny commented 2 months ago

Hi, I am running into the same/similar auth issue.

Method 2: https://github.com/tedchou12/webull/wiki/Workaround-for-Login-%E2%80%90-Method-2

  1. I got the "Did" from the "Response Header"
  2. In python console: 2.1 wb._did=f"{myDid}" as well as wb._set_did = f"{myDid}" 2.2 wb.login("+1-1234567890", "myPa$$word") 2.3 >>> {'msg': 'Fail to verify image verification code.', 'traceId': '13C25C59....3B', 'code': 'user.check.slider.pic.fail'}

Method 1: https://github.com/tedchou12/webull/wiki/Workaround-for-Login-%E2%80%90-Method-1 I tried this method as well. From the line wb.refresh_login() I got: JSONDecodeError from some requests

Thanks much in advance...