Skip to content
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

Getting "Forbidden" response from https://api.mobile.walmart.com/v4/mauth/get-token #1

Open
chuckinator0 opened this issue Nov 18, 2020 · 2 comments

Comments

@chuckinator0
Copy link

Hey, thanks for putting together this script. I'm playing around with it and getting this return value from posting to https://api.mobile.walmart.com/v4/mauth/get-token

Forbidden

1605741594-21206582306-10453480132-33291338

Any clues as to what's going on? Did Walmart lock down this API endpoint?

@nosamttam
Copy link

I fail on the same line, different error:
DEBUG - Running pre-signin tasks.
DEBUG - signing in with username = XXX, password=YYY
Traceback (most recent call last):
File "wallybot.py", line 318, in
runwally(args.username, args.password, args.cvv, args.offerid,
File "wallybot.py", line 273, in runwally
if walmart_signin(r, username, password):
File "wallybot.py", line 55, in walmart_signin
resp = json.loads(r.post('https://api.mobile.walmart.com/v4/mauth/get-token',
File "C:\Python38\lib\json_init_.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Python38\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python38\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@chuckinator0
Copy link
Author

@nosamttam yes, if you do a try/except ValueError for the response object, you’ll find that the json doesn’t decode properly because the response is forbidden.

I’m not sure where the bot detection string comes from, and I can’t find any documentation on that get-token api endpoint, so I gave up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants