Skip to content

misleading error message #1227

Description

@VDFaller

Problem

Devs keep running into the same error messages and not being able to debug them.

first

401002: Unauthorized Access Invalid authentication credentials were provided.
in our case is because a PAT is being used simultanuously in two places like #717 .

second

Check failed Missing site ID. You must sign in first.
This is almost always due to someone nesting functions that have with sign in statements in them like

def outer():
    with server.auth.sign_in(tableau_auth):
       # do stuff
        inner()

def inner():
    with server.auth.sign_in(tableau_auth):
        # do stuff
        print("hi")

it has NEVER been that the site_id was not given in tableau_auth

I know them well enough now to know what's the cause but they're pretty misleading and took us a while to figure out what was actually going on.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions