paiqo / Databricks-VSCode

VSCode extension to work with Databricks
GNU General Public License v3.0
123 stars 27 forks source link

ERROR: SyntaxError - Unexpected token '<', "<!doctype "... is not valid JSON #193

Closed kimisikainai closed 4 months ago

kimisikainai commented 4 months ago

when i try to get the cluster list ,I encounter the following error:

GET 2.0/clusters/list --> null ERROR: SyntaxError - Unexpected token '<', "<!doctype "... is not valid JSON

gbrueckl commented 4 months ago

this usually indicates an authentication issue where instead of a JSON an HTML of the login page is returned you might find more information in the logs (Outputs -> Databricks VSCode)

what authentication method / which connection manager are you using?

kimisikainai commented 4 months ago

The logs do not provide more useful information. For more details, please see the image below.

image

gbrueckl commented 4 months ago

please scroll to the top/beginning of the logs as we do some basic connecitvity check when the extension starts also, did you provide the Personal Access Token (PAT) in your VSCode settings and did you set all other configurations accordingly? can you share them? (without sensitive information of course)

kimisikainai commented 4 months ago

Although I don't know the reason, when I switched to a different computer and used the same token, there was no problem. So let's close this issue for now. If I discover anything more, I'll update it.

kimisikainai commented 3 months ago

The cause has been found. It was due to a proxy setting in VSCode. After removing the proxy setting, everything returned to normal.