API Help: String index out of range: -25
#58
Replies: 1 comment 3 replies
-
Happy you like it! Are you using this same request? client.post(
"sso",
"/sso/signin",
params=SIGNIN_PARAMS,
referrer=True,
data=dict(
username=email,
password=password,
embed="true",
_csrf=csrf_token,
),
) Here's de regex for the CSRF token: re.compile(r'name="_csrf"\s+value="(.+?)"') |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I love the library, but I'm working on a plugin for a Go application (so I can't use it), but using mitmproxy and the code here I'm trying to complete the API requests to login.
I've retrieved a CSRF token, I've been storing the cookies, but, when I go to POST the login route I get the following result:
I am sending
SESSION
,SameSite
,org.springframework.web.servlet.i18n.CookieLocaleResolver.LOCALE
,__cf_bm
,__cflb
,_cfuvid
,ADRUM_BTa
,ADRUM_BT1
, and__VCAP_ID__
cookies, the only one that it looks like I don't have iscf_clearance
(which it also looks like garth isn't using). If it's any help my headers are set to those of the iOS version of the app, but I was using the Android ones for a bit.Again, thanks for an amazing Python library, and I've been stuck on this problem for a day now, so any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions