docs: added troubleshooting guides + improvements (#11927)

* docs: added troubleshooting guides + improvements

* build fixes
This commit is contained in:
Shahed Nasser
2025-03-21 11:47:03 +02:00
committed by GitHub
parent c4f75ecbb2
commit 4c33586946
35 changed files with 17258 additions and 15864 deletions
@@ -0,0 +1,22 @@
If you send a request to an API route and receive the following error:
```json
{
"type": "invalid_data",
"message": "Invalid request: Unrecognized fields: 'additional_data'"
}
```
## Why this Error Occured
This error occurs when you send the `additional_data` request body parameter to a route that doesn't support it.
The [Additional Data property](https://docs.medusajs.com/learn/fundamentals/api-routes/additional-data) is useful to pass custom data to an API route, but it's not supported by all API routes.
---
## How to Fix it
For the list of API routes that support passing `additional_data`, refer to the [Additional Data documentation](https://docs.medusajs.com/learn/fundamentals/api-routes/additional-data).
If the route you need isn't on the list, you have to create a custom API route with your desired functionality.