---
schema_version: "1"
id: 61e434efff3f0d070ffd556f7bbd00413cee92bf6987528305c57f1c8546761f
title: OAuth 連線疑難排解
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/server/oauth_trouble.md
canonical_url: https://help.tableau.com/v0.0/server/zh-tw/oauth_trouble.htm
source_site: help.tableau.com
content_type: documentation
content_hash: d86bcdabf20979e9be11c33e60729f90b96b3656841911e4b9c9e16639a619de
description: Troubleshoot issues that occur when configuring OAuth data connections.
---
[跳至主要內容](#main-content)

# OAuth 連線疑難排解

本主題提供相關資訊，說明如何解決在設定 OAuth 資料連線時可能發生的問題。

## 衝突錯誤

在某些情況下，使用者嘗試透過 OAuth 連線時可能會收到錯誤。錯誤訊息的第一個句子是：

伺服器發生內部錯誤或組態錯誤，無法完成您的請求。

此錯誤表示 Tableau Server 的完整網域名稱 (FQDN) 需要新增到 Tableau Server 上的允許清單重新導向金鑰。

使用者透過本機主機名稱 (https://tableau) 存取 Tableau Server，且 OAuth 資料提供者回應公用 DNS 名稱 (https://data.example.com) 時，Tableau Server 必須將外部 FQDN 與本機伺服器名稱建立關聯。本機主機名稱是使用者從內部網路存取 Tableau Server 時在 URL 中輸入的伺服器名稱。

若要修正此錯誤，請使用 `oauth.whitelisted.redirect_to_origin_host` 金鑰選項執行 [tsm configuration set](https://help.tableau.com/v0.0/server/zh-tw/cli_configuration_tsm.htm#TSMSet)。此金鑰會採用值對 `"internal_host,FQDN1,FQDN2"`。例如，以下命令會將本機主機名稱設定為 _tableau_，並將 FQDN 設定為 _tableau.example.com_：

`tsm configuration set -k oauth.whitelisted.redirect_to_origin_host -v "tableau,tableau.example.com"`

`tsm pending-changes apply`

如果是使用多個公用 URL 存取內部 Tableau Server 的情形，請在命令中新增額外的 FQDN（以逗號分隔），例如：

`tsm configuration set -k oauth.whitelisted.redirect_to_origin_host -v "tableau,tableau.example.com,tableau2.example.com"`

如果需要編輯現有的允許清單重新導向組態，您必須輸入完整的對應組。您不能截斷或附加現有的組態金鑰。