> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/faq/help-topics/connecting/connection-errors-and-api-responses.md).

# Connection errors and API responses

Common questions about connection errors and API responses.

## Articles

{% content-ref url="/pages/Hjli6gR5wYQdc3JvmPZ3" %}
[Why do my requests return 401 in production?](/faq/help-topics/connecting/connection-errors-and-api-responses/env-credential-mismatch-401-invalid-token.md)
{% endcontent-ref %}

{% content-ref url="/pages/bmIszl9ESu98xuRLo9xD" %}
[Why do I get 'app is blocked' on Google Fit OAuth?](/faq/help-topics/connecting/connection-errors-and-api-responses/google-fit-app-blocked-write-scopes.md)
{% endcontent-ref %}

{% content-ref url="/pages/99RqBczrcpAZ5mU2hKm5" %}
[Why do I get 'insufficient permissions for data type' on Google?](/faq/help-topics/connecting/connection-errors-and-api-responses/google-insufficient-scope-data-type.md)
{% endcontent-ref %}

{% content-ref url="/pages/ZwhXnSyABnWwY705VLWv" %}
[Why does Google connect return a google\_no\_datasource warning?](/faq/help-topics/connecting/connection-errors-and-api-responses/google-no-datasource-warning.md)
{% endcontent-ref %}

{% content-ref url="/pages/haIz8s1pspB1mCYdYvuy" %}
[Why does Fitbit show 'rate limit exceeded' right after connecting?](/faq/help-topics/connecting/connection-errors-and-api-responses/fitbit-rate-limit-after-connect.md)
{% endcontent-ref %}

{% content-ref url="/pages/740ziYQNo2abfRPXwhgg" %}
[Why does the OAuth redirect hang or return missing\_scopes?](/faq/help-topics/connecting/connection-errors-and-api-responses/webhook-30s-timeout-and-historical-data.md)
{% endcontent-ref %}

{% content-ref url="/pages/EsRzOx4TFkWvAdn9TRvH" %}
[Why does the auth endpoint return 422 errors?](/faq/help-topics/connecting/connection-errors-and-api-responses/reference-id-must-be-string-422.md)
{% endcontent-ref %}

{% content-ref url="/pages/LtzIpV51RAci9px5Hc0G" %}
[Why does generateWidgetSession return a 500?](/faq/help-topics/connecting/connection-errors-and-api-responses/generatewidgetsession-500-no-sources.md)
{% endcontent-ref %}

{% content-ref url="/pages/JFzMtvHxV9wDmgOzr7dk" %}
[Why is my staging widget blocked before provider auth?](/faq/help-topics/connecting/connection-errors-and-api-responses/staging-testing-50-user-cap.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.tryterra.co/faq/help-topics/connecting/connection-errors-and-api-responses.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.
