-
Notifications
You must be signed in to change notification settings - Fork 131
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
Invalid request for Bolt (Europe) #225
Comments
I think you forgot the phone parameter in the body |
Nope i had it, it was just in another order. I tried your parameters and ended up with the same error
|
@MiteEnBois those parameters are just an example, they are not expected to work, You also need to do the previous step, try this 2 bodys, the sms code will be sent to this: POST https://user.bolt.eu/user/register/phone POST https://user.bolt.eu/user/confirmVerification/ |
i was already doing this, and it worked, but inputing the code didn't change anything, and with your parameters it still doesn't work. I can show you my python code if you want, maybe its as simple as a typo somewhere import requests
URL = "https://user.bolt.eu/user/register/phone"
PARAM = {
"phone": "+447901614024",
"preferred_verification_method": "sms",
"phone_uuid": "cff09d97-4954-41b7-bd37-d8061ad3ff30",
"appsflyer_id": "1234567890123-1234567"
}
r = requests.post(url=URL, data=PARAM)
print(r.text)
URL = "https://user.bolt.eu/user/confirmVerification/"
code = input("SMS Code : ")
PARAM = {
"phone_uuid": "cff09d97-4954-41b7-bd37-d8061ad3ff30",
"verification": {
"confirmation_data": {
"code": code
}
},
"phone": "+4915207955279"
}
r = requests.post(url=URL, data=PARAM)
print(r.text)
URL = "https://rental-search.bolt.eu/categoriesOverview"
PARAM = {
"lat": "50.0000",
"lng": "10.0000",
"version": "CI.23.0",
"deviceId": "352229114789661",
"deviceType": "iphone",
"device_name": "iPhone12,3",
"device_os_version": "iOS15.0",
"language": "en"}
r = requests.get(url=URL, params=PARAM)
print(r.text) The last code block is the requests to get all scooter data in the area, and it doesnt work because i cannot send the verification code, as seen below.
Obviously i used the web phone thing you linked and used the real code sent by the api, but i still got the same error ! |
try this on the post request: |
aaaaaah, that was it, thank you! |
Great, now i cannot get authorized. Here is the code for the last request URL = "https://rental-search.bolt.eu/categoriesOverview"
PARAM = {
"lat": "50.00000000",
"lng": "10.00000000",
"version": "CI.24.0",
"deviceId": "cff09d97-4954-41b7-bd37-d8061ad3ff30",
"deviceType": "iphone",
"device_name": "iPhone12,3",
"device_os_version": "iOS15.0",
"language": "en"}
r = requests.get(url=URL, params=PARAM)
print(r.text) The verification code is the same as before |
@MiteEnBois now we are at the same point: |
Good day chaps. The solve here is very simple. The requests to https://rental-search.bolt.eu/categoriesOverview require what Bolt calls "Basic" authorization. Include the header Example command I used from the terminal on Ubuntu: I'll create a PR for Bolt EU so that this info can help others. |
Can confirm that this worked for me, thank you @LukeStonehm |
I tried running the code excactly as described here (with my own info of course), but i get this response when trying to register my phone: {"code":702,"message":"INVALID_REQUEST","validation_errors":[{"error":"Is required","property":"version"},{"error":"Is required","property":"deviceId"},{"error":"Is required","property":"deviceType"},{"error":"Is required","property":"device_name"},{"error":"Is required","property":"device_os_version"},{"error":"Is required","property":"language"}]} has the API changed so this doesnt work anymore, or am I just doing something wrong? |
Please close this. |
I am trying to use the sms verification, but the parameters on the confirmation is apparently invalid. I am using the parameters explained in the .md, but it just doesnt work
This is the parameters that are supposed to work
this are my parameters, just about the same
and this is the response i get
{"code":702,"message":"INVALID_REQUEST","validation_errors":[{"error":"Is not object","property":"verification","children":[]}]}
My guess is that it misses a parameters somewhere, but i dont know what.
The text was updated successfully, but these errors were encountered: