-
Notifications
You must be signed in to change notification settings - Fork 44
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
Scraper Returns Error: {"errors":[{"code":366,"message":"Missing data."}]} when using the login() function #86
Comments
Same exact issue with my app |
Hey, what hosting service do you use? Also, do you do app.enable("trust proxy") in your code or not? |
I did some logging of the onboardingTaskUrl on line 266 of auth-user.js (as well as headers and data (body) that is send) Here's what's being sent locally (with cleared cookies):
Here is what's being sent in production (render.com)
So the beginning of the login process is the same, but not the end: locally, it does subtask_id LoginEnterPassword, while production subtask_id is LoginEnterAlternateIdentifierSubtask... It seems like it tries to enter an alternate identifier subtask but it doesn't exist, hence why it says "missing data" (missing alternate identifier/alternate identifier subtask) @karashiiro would it be possible to provide us with a quick fix for this? |
Not sure what that subtask actually represents, it sounds like a 2FA challenge? I've been incredibly busy lately with some service outages in another project I maintain, but if there's any info on the flow floating around I can see what I can do. |
Actually, that seems to have been added in this PR? #93 |
You were right, all I had to do was add the "email" parameter (used a phone number instead, though) |
When using the login function with username, password and email on a local instance of scraper, it works and I am able to use functions that need the login function. Furthermore, isLoggedIn also returns true.
However, when pushing the same code to a server on the cloud, I get the error below.
I am using the same exact inputs that I used on local on the cloud server
This code is not run client side so I am not using the proxy but I tried anyway and it gave further errors on both local and the cloud server.
Is there any configurations needed that I am unaware of?
Im also using express.js
The text was updated successfully, but these errors were encountered: