---
schema_version: "1"
id: 0c5d76815888e631f6b4ca13c74f71e26a5cd335e93372b331380b3a569b0a35
title: 从 Tableau Server 返回了票证值 -1
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/trusted_auth_trouble_1return.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/trusted_auth_trouble_1return.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 0f61d2237e2fe8691070a252062a725e710f71c9ae7418ddc46ec5a5649ae6e6
description: Understand the -1 ticket value returned during trusted authentication.
---
[跳转到主要内容](#main-content)

# 从 Tableau Server 返回了票证值 -1

Tableau Server 在不能将票证作为受信任的身份验证过程的一部分发出时会返回票证值“-1”。在对此方案进行故障排查之前，请确保按[受信任的身份验证疑难解答](https://help.tableau.com/current/server-linux/zh-cn/trusted_auth_trouble.htm)中指定的方式将受信任的身份验证的日志级别设置为 `debug`。

此消息的确切原因将写入到以下文件夹内的 `vizqlserver_node*-*.log.*` 文件中：

`/var/opt/tableau/tableau_server/data/tabsvc/logs/vizqlserver`

以下是需确认的一些内容：

- **所有 Web 服务器主机名称或 IP 地址都已添加到受信任主机**
    
    日志错误“`Invalid request host: <ip_address>`”可能指明发送 POST 请求的计算机的 IP 地址或主机名不在 Tableau Server 上受信任的主机列表中。若要了解如何向此列表添加 IP 地址或主机名称，请参见[向 Tableau Server 添加受信任的 IP 地址或主机名称](https://help.tableau.com/current/server-linux/zh-cn/trusted_auth_trustIP.htm)。
- **IP 地址是 IPv4**
    
    如果使用 IP 地址指定受信任主机，它们必须采用 Internet 协议版本 4 (IPv4) 格式。IPv4 地址如下所示：123.456.7.890。不支持使用 IPv6 地址（例如 fe12::3c4a:5eab:6789:01c%34）输入受信任主机。
- **POST 请求中的用户名是有效的 Tableau Server 用户**
    
    在 POST 请求中发送的用户名必须是 Tableau Server 许可用户。您可以通过以管理员身份登录到 Tableau Server 来查看用户列表。
    
    以下日志错误指明用户 POST 问题：
    
    - “`Missing username and/or client_ip`”
    - “`Invalid user: <username>`”
    - “`Unlicensed user is not allowed: <username>`”
    
    **POST 请求中的用户名包含域**
    
    如果将 Tableau Server 配置为使用本地身份验证，则在 POST 中发送的用户名可以是简单字符串。但是，如果将服务器配置为使用 Active Directory，则必须在用户名中包含域名（域\\用户名）。例如，username 参数可能是：`username=dev\jsmith`。此方案的一个常见错误日志是“`Invalid user: <username>`”。
- **内容类型已指定**
    
    如果您要设计一个 ASP.NET 或 C# 应用程序，则需要在您的 HTTP 请求中声明内容类型。例如：
    
    `http.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8")`
    
    如果您没有指定内容类型且 Tableau Server 返回 -1，则日志文件包含错误：“`missing username and/or client_ip`”。