Start a new topic

Data is disappearing from collections - when viewed in Kinvey Console

Sometimes, when adding information to collections (using API) and then checking to see if the data inserted correctly into the collections, using Kinvey console, we cannot see the new values (or part of it) . However, if we try to fetch the information using an API, we do get the values properly. Also, when connecting from a different computer or a browser, we do see the data properly. Getting in and out of the page, ctrl+F5, and other page refresh methods sometimes help, but NOT always. 
It appears as if the console has some cashing or other issues. 

This is an annoying bug as it might reflect on our ability to provide proper end-users customer support or conduct efficient QA. 
More than that, it might lead to us to duplicate data in collections, trying to insert the same data thinking it is not there. 

We are using Chrome as our main browser. 
1 Comment

Hello Hilik,


Thanks for posting this question on the forum. I have implemented your use-case and not able to reproduce the issue mentioned by you. All the data is successfully inserted, updated and fetched. No issues are seen while viewing the data on the console. I have a few questions for you:

  • Can you please tell me the name of the collection you are trying to insert the data into?
  • You are updating the existing records in a collection from API console. What authentication you are using for making API requests? Please check the following screenshot which shows Master Secret authentication.
  • What authentication provider you are using to view the data in your collection? Just navigate to your collection on the console-> click on the icon present before "Collection Settings". Please check the following screenshot which shows Master Secret authentication.
  • When you are making a PUT request for updating a record in a collection, The JSON body needs to include all entity attributes - both the ones you are updating and the ones that will remain unchanged. The backend will store the entire JSON body exactly as passed in the body. If you forgot to include any attribute here, then that value will be wiped out for that record. Please check this link for more information. Can you please confirm you are doing this correctly?

  • Can you please tell me if you have enabled any collection hooks on the collection you are trying to insert the data into?



Please review this information and let me know if you still have any additional questions. If you still see any issues then please let me know the steps to reproduce the issue. Also, add "pranav@kinvey.com" as a collaborator to your environment (GBPlatformDev) so that I can investigate this issue directly into your environment.




Thanks,

Pranav

Kinvey

Login or Signup to post a comment