-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parse.FacebookUtils.unlink timeout #3935
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
Comments
Can you provide the server logs when running with VERBOSE=1? |
@flovilmart, sure:
|
@flovilmart, btw, the unlinking is successful as the I changed the code to:
Also here the unlinking is successfull but neither |
i don't see any logs for the unlink calls in the logs (should have {authData: null} in the payload). |
@flovilmart Do you have any idea what I could do to investigate further? The unlink happens and |
I don't see the call to the unlink in the logs which is very odd. and we have coverage for that feature, so could you try:
|
@flovilmart, same result in the log. Here is the whole cloud code function structure if it helps:
|
you're passing |
I cut it out in the comment accidentally, updated the comment now. |
Ok, what's odd is that the unlink call never reaches the server, the investigation should start inside the JS SDK, adding logs/breakpoints alongside the unlink code path. |
I think the unlink call does reach the server, because the |
That would be interesting to know for sure why this call never reaches the server. And why it's never fired, without that I can't say where the error comes from. |
The call is not logged, we should see a PUT call on the server logs coming in. |
add a
to the end of your promise chain. and, are you sure that you are returning a promise in the first .then() below?
|
So I created a cloud job to test unlinking and found that I did not call
And fails with: How do I load the SDK? |
As a workaround I am doing a
That works, but it's surely not elegant. |
The workaround is OK, I believe the Facebook SDK needs to be loaded before you can use the .unlink and this won't work in node. |
Issue Description
When trying to unlink a user in cloud code the
Parse.FacebookUtils.unlink
times out.Steps to reproduce
Expected Results
Function should return a promise resolved or rejected.
Actual Outcome
Function times out.
Environment Setup
Server
Database
The text was updated successfully, but these errors were encountered: