-
-
Notifications
You must be signed in to change notification settings - Fork 875
fetchAllIfNeededInBackground error "Object not found on the server." #986
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
It doesn't trigger the assertion below so objectId != nil
Additionally I followed the call stack a little and it seems to indicate 6 elements but only 5 objectIds. So it seems to fail on one but returns nothing? It should return at least 5. That one object is probably of a different class (PFUser vs a PFObject) |
More notes:
|
@nlutsenko I would appreciate your input on this. This maybe tied to #984 where I removed the assertion to be able to fetch from multiple classes at the same time. |
My two guesses:
|
seems like this is similar to my issue |
@shiva-wal don't do that, don't hijack this thread
Please remove your comment. And instead add details your issue. |
I think my issue is related to yours, hopefully we come up with a fix, spent all day trying to work out whats wrong, mine seems to be with relationships and fetchIfNeededInBackgroundWithBlock |
Hey everyone, What seems to be happening is that you are trying to fetch 6 objects, where only 5 have were found on the server. We explicitly fail with an error on that one and the entire task is treated as faulted (even though the 5 objects were successfully refreshed). The first thing I would suggest checking is whether you can reproduce the same weird behavior with a simple Let me know what you find from the step above ^. |
Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.
|
@nlutsenko Thanks for the response. Regarding your points,
Do you have an idea why a second call to fetchAllIfNeededInBackground the exact same data yields results? The results the second time around seem to be cached, likely from the first time around. Based on the function above, we use the first objectId to determine the query class, can it be the cause? Since I have one pointer of a different class? if so, my question above would still be valid. |
Just to point out, if I do the following on first call, the results appear from the get-go. Thats obviously because my call includes itself. So the first call is actually 2 calls in one.
|
This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback. |
We are closing this issue due to another 7 days of inactivity. If you have additional information to help pinpoint this issue as an SDK bug, please reopen it with the additional information.Thank you for your feedback. |
Yes and the code snipped you provided will run the query against the className of the first object, therefore marking the whole task as failed. |
I'm running into an issue where I present a view and try to execute fetchAllIfNeededInBackground on a few objects. The first time the function is called, I get the mentioned error. Subsequent calls yields results.
Important note to make. This pointers in the "recentSearches" array can be from two classes.
The text was updated successfully, but these errors were encountered: