You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use the POST method to add some new data to an endpoint.
Later, when i try to update the data using either PUT or PATCH method, it simply does not exist, visiting the URL says "Not Found" but the object is shown in the total list on the endpoint. (Refer to the images attached below)
The text was updated successfully, but these errors were encountered:
I think this is because the new object's id is not being saved as a String, causing it to not recognize it.
Restarting the server fixes the id and converts it into a String
When you use the POST method to add some new data to an endpoint.
![image](https://private-user-images.githubusercontent.com/75422863/339522185-c7bde126-2435-4fff-84ed-ab6d472e2b07.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NjAxMDAsIm5iZiI6MTcyNDU1OTgwMCwicGF0aCI6Ii83NTQyMjg2My8zMzk1MjIxODUtYzdiZGUxMjYtMjQzNS00ZmZmLTg0ZWQtYWI2ZDQ3MmUyYjA3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDA0MjMyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4Yjc5YWEwZmI5YjEyZjBlZDFkNWMyZmM5MjVhZmU0MWY4OTViMGYwODFjZDQzZDRiMTAxZjYxYWUxNGYyOGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Ev-nkUH33ySnwZOvxfoVJL00Vnp7mzPk42wt9RTbRnQ)
![image](https://private-user-images.githubusercontent.com/75422863/339521932-bd36f108-760a-4743-ae3e-431c386a89ef.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NjAxMDAsIm5iZiI6MTcyNDU1OTgwMCwicGF0aCI6Ii83NTQyMjg2My8zMzk1MjE5MzItYmQzNmYxMDgtNzYwYS00NzQzLWFlM2UtNDMxYzM4NmE4OWVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDA0MjMyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5YjMwYTA4NTUyNzgyYmExMjc5YjJmNDQ3OGNkNjY0Njc1MjA0ZmE2OTAyNzkwYjNjYTJjMzk0Yzk4YTdjZDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0vKXKoTxrN2Ctng6CwhRF7lXM9LdvPtId64qUqNdCv0)
![image](https://private-user-images.githubusercontent.com/75422863/339522250-51507ba6-0edb-43a4-8c4b-93592f7a790b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NjAxMDAsIm5iZiI6MTcyNDU1OTgwMCwicGF0aCI6Ii83NTQyMjg2My8zMzk1MjIyNTAtNTE1MDdiYTYtMGVkYi00M2E0LThjNGItOTM1OTJmN2E3OTBiLnBuZz9YLUFt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2NjYjBlOWMwNGU1MjM2ZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.p-utUfLDOw4DDGsEOCuvRaFmgyQeys61QD6zreT_BkY)
Later, when i try to update the data using either PUT or PATCH method, it simply does not exist, visiting the URL says "Not Found" but the object is shown in the total list on the endpoint. (Refer to the images attached below)
The text was updated successfully, but these errors were encountered: