|
1
|
import { Note } from "docs-ui" |
|
2
|
|
|
3
|
export const metadata = { |
|
4
|
title: `Troubleshooting Cloud Projects`, |
|
5
|
} |
|
6
|
|
|
7
|
# {metadata.title} |
|
8
|
|
|
9
|
In this guide, you'll find solutions to common issues that may arise when working with your projects on Cloud. |
|
10
|
|
|
11
|
<Note> |
|
12
|
|
|
13
|
If none of the issues in this guide match yours, [check the Cloud status page](../../status/page.mdx) for ongoing Cloud incidents. The bottom of the documentation's right sidebar also shows the current Cloud status. |
|
14
|
|
|
15
|
</Note> |
|
16
|
|
|
17
|
## 403 Error: Requested Fields Are Not Allowed |
|
18
|
|
|
19
|
When you send a request to a Store API route with a `fields` query parameter, you may receive a `403` response with the following error: |
|
20
|
|
|
21
|
```json |
|
22
|
{ |
|
23
|
"message": "One or more of the requested fields are not allowed on this endpoint." |
|
24
|
} |
|
25
|
``` |
|
26
|
|
|
27
|
Cloud applies Web Application Firewall (WAF) rules to your project for security reasons. A WAF is a filter that inspects incoming requests and blocks the ones that match a rule before they reach your Medusa application. |
|
28
|
|
|
29
|
These rules apply globally to all `/store` API routes, including custom routes that you add to your project. So, you can't retrieve some relations in the `fields` query parameter, such as a customer's `orders`, since the request may return all the orders in your store. |
|
30
|
|
|
31
|
To resolve this error, remove the disallowed relations from your request's `fields` query parameter. If your use case requires these relations, contact support through the Cloud dashboard and explain your use case to have the rules unblocked for your project. |