---
schema_version: "1"
id: 2813a6581b30ae42128dcc5444411d3408c9845716f1932c1d1a321ad5ae3965
title: OAuth 連線疑難排解
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/server-linux/oauth_trouble.md
canonical_url: https://help.tableau.com/v0.0/server-linux/zh-tw/oauth_trouble.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 89896fbfb52f71eeb227ea0f6c84cfbf7ee234f139a4c775f7b8b353fc17fd59
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-linux/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"`

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