You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can we convert this in to ServerResponseError.from_response exception instead of NonXMLResponseError #1472
Can you expand on what you're trying to do and why you think that would be helpful? ServerResponseError is for interpreting errors from a Tableau Server, and parsing that XML into a more descriptive error. If you're getting a NonXMLResponseError then a ServerResponseError.from_response would also not be able to process the content returned. If you're just trying to catch the error, you probably want to go one level up in the exception hierarchy.
Activity
jorwoods commentedon Sep 22, 2024
Can you expand on what you're trying to do and why you think that would be helpful?
ServerResponseErroris for interpreting errors from a Tableau Server, and parsing that XML into a more descriptive error. If you're getting aNonXMLResponseErrorthen aServerResponseError.from_responsewould also not be able to process the content returned. If you're just trying to catch the error, you probably want to go one level up in the exception hierarchy.hprasad-tls commentedon Sep 23, 2024
It's improves the readability and parsing of information, as ServerResponseError.
jorwoods commentedon Sep 23, 2024
The issue is if the server doesn't return XML, it can't be parsed into a ServerResponseError. Hence: NonXMLResponseError.
hprasad-tls commentedon Sep 23, 2024
but I have seen it responding xml response but data is not parsed.
jorwoods commentedon Sep 23, 2024
Can you post a reproducible example of what you are trying when you get the error, as well as the error message returned?
hprasad-tls commentedon Sep 23, 2024
This is happening when personal token is wrong and Server authentication failed to Sign in.
hprasad-tls commentedon Sep 23, 2024
As you can see in this, it's a XML response the exception is raised because of wrong token.

feat(exceptions): separate failed signin error
feat(exceptions): separate failed signin error
feat(exceptions): separate failed signin error
feat(exceptions): separate failed signin error
feat(exceptions): separate failed signin error (#1478)
feat(exceptions): separate failed signin error (tableau#1478)