tableau / TabPy

Execute Python code on the fly and display results in Tableau visualizations:
https://tableau.github.io/TabPy/
MIT License
1.56k stars 598 forks source link

Receiving error for invalid key file when using SSL #427

Closed mhollis5 closed 4 years ago

mhollis5 commented 4 years ago

Environment information:

Describe the issue When using SSL, I am receiving this error: "Error using HTTPS: The parameter(s) TABPY_KEY_FILE must point to an existing file." I have ensured the file in the config file is appended with '.key'. I have also tested this without '.key' at the end, in addition to tyring '.key.key', just in case.

I do not receive this error when using TabPy version 0.7. I made no changes to the file or its path, so the only change is the version of TabPy.

0golovatyi commented 4 years ago

@mhollis5 Is the path for the key file relative? If it is could you try the absolute path for it?

mhollis5 commented 4 years ago

It isn't - I'm using the absolute path

0golovatyi commented 4 years ago

@mhollis5 If the path is absolute and points to an existing file the only other reason I can think of right now is if access rights are allowing TabPy to see/read the file.

Do you mind to show how the parameter is set in your config file?

mhollis5 commented 4 years ago

I thought of that as well, and tried moving the Cert/Key to a file that I know TabPy should be able to access. Oddly enough, the cert file is fine, and I'm only receiving the error for the key file.

The parameter for the key file is: "TABPY_KEY_FILE = C:\TabPy-1.1\SSL\keyfile.key"

This is the same config file I used for TabPy 0.7

0golovatyi commented 4 years ago

@mhollis5 When you run dir C:\TabPy-1.1\SSL do you see keyfile.key in the output?

mhollis5 commented 4 years ago

@0golovatyi I do in fact see it in the output when running that command

nmannheimer commented 4 years ago

@mhollis5 would you be interested in setting up a call for us to dig into this further? If so, drop me a line at nmannheimer@tableau.com

mhollis5 commented 4 years ago

I would actually love that! Email sent

nmannheimer commented 4 years ago

Issue turned out to be with a malformed config file.