-
-
Notifications
You must be signed in to change notification settings - Fork 407
Return response on failed requests #610
Copy link
Copy link
Closed
Labels
design: uxRelated to End-users' experience.Related to End-users' experience.feature: QueriesMaking new API requestsMaking new API requestsscope: toolpad-studioAbbreviated to "studio"Abbreviated to "studio"type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.waiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.Waiting for upvotes. Open for community feedback and needs more interest to be worked on.
Metadata
Metadata
Assignees
Labels
design: uxRelated to End-users' experience.Related to End-users' experience.feature: QueriesMaking new API requestsMaking new API requestsscope: toolpad-studioAbbreviated to "studio"Abbreviated to "studio"type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.waiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.Waiting for upvotes. Open for community feedback and needs more interest to be worked on.
Duplicates
Latest version
Summary 💡
When an API request is not OK
https://github.com/mui/mui-toolpad/blob/479def38e5a01f23aac7da8bb90f33f78e49fe9d/packages/toolpad-app/src/toolpadDataSources/rest/server.ts#L60
It only logs the error:
However, it's not helpful. I would expect something like this (Postman):
https://mui-org.postman.co/workspace/Team-Workspace~a3fd1430-e7a2-482a-8fa2-e4f40a2223c8/request/19543436-85f9898b-a606-4caa-ad96-cb46ba1257ea
or
Examples 🌈
To reproduce
For context, it calls https://app.goflightlabs.com/flights
Motivation 🔦
I had to run the project locally to add a console.log to understand what was going wrong. Ideas for follow-ups: