8000 Add explanation for handling 405 error when signing in to server with… · shiv-io/server-client-python@f6b7d38 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6b7d38

Browse files
committed
Add explanation for handling 405 error when signing in to server without using HTTPS URL
Fixes tableau#325
1 parent f37f33b commit f6b7d38

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/sign-in-out.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,26 @@ server.auth.sign_in(tableau_auth)
7373
server.auth.sign_out()
7474
```
7575

76+
### 405000 Method Not Allowed Response
77+
78+
In some cases, you may find that sign in fails with a 405 message:
79+
```
80+
405000: Method Not Allowed
81+
The HTTP method 'GET' is not supported for the given resource
82+
```
83+
84+
The most likely cause of this is signing in to a Tableau Server using the HTTP address which the server redirects to a secure HTTPS address. However, during the redirect the POST request turns into a GET request which is then considered an invalid method for the login entrypoint. (For security reasons, the server is following the standards correctly in this case).
85+
86+
The solution is to avoid the redirect by using the HTTPS URL for the site. For example, instead of:
87+
```py
88+
server = TSC.Server('http://SERVER_URL')
89+
```
90+
91+
Switch to the HTTPS (SSL) URL instead:
92+
```py
93+
server = TSC.Server('https://SERVER_URL')
94+
```
95+
7696
## Sign Out
7797

7898
Signing out cleans up the current session and invalidates the authentication token being held by the TSC library.

0 commit comments

Comments
 (0)
0