I want to fetch data from server using “id” but it shows me internal server error.
This is my frontend part “ShowBook” which is used for fetching the data from server :-
(https://i.sstatic.net/bQCAZyUr.png)
This is my backend part ( Routes ) –>
(https://i.sstatic.net/2fEeFBTM.png)
This is my Schema —>
(https://i.sstatic.net/0GPNpICY.png)
This is my App file —>
(https://i.sstatic.net/CGsjjNrk.png)
These are my errors —>
(https://i.sstatic.net/fzE47Tl6.png)
(https://i.sstatic.net/65qE66UB.png)
I checked my routes, api endpoints. My api are working fine when i test them using Postman.
RITIK SINGH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.