# Troubleshooting

### Invalid auth\_code

<figure><img src="/files/eIGBUccplFSEvdZvPoHb" alt=""><figcaption></figcaption></figure>

When a request (aka. raven) is sent, payload must include a `raven_mac` which is a `sha256` generated using a secret key. That secret is added to the store when FieldsRaven app is installed, in rare occasions the app fails to add the secret key, when that happens, the incoming payload won't have a valid `raven_mac`.

To make sure your Shopify store has the secret key go to settings and click on the eye icon, if the secret key is missing please [reach out](mailto:karim@fieldsraven.app).

<figure><img src="/files/iYOJtmfMthXEf85Qce08" alt=""><figcaption></figcaption></figure>

#### Error: null

<figure><img src="/files/WByuCfhTeiJc0umkcX37" alt=""><figcaption></figcaption></figure>

This might be because you created the metafiled in Shopify admin and added a validation to the filed, make sure the data you send from the storefront is valid according to the validation you created and make sure the metafield type matches the type sent by FieldsRaven.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldsraven.app/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
