sdk-codegen icon indicating copy to clipboard operation
sdk-codegen copied to clipboard

Port should be updated from 19999 to 443

Open wpride opened this issue 5 years ago • 2 comments

👋 I'm just getting setup with my Looker instance and connecting with the Typescript SDK. I was not able to connect to the aPI at the suggested port of 19999 but 443 worked correctly. Does this need to be updated in the documentation?

wpride avatar Sep 16 '20 20:09 wpride

We should probably update the documentation to reflect that newer Looker instances will be on 443 while older ones will be on 19999

The web instance knows what port the API is listening on too so we could in theory add a snippet to the web UI. Or even expose an un-authenticated endpoint on the web server that communicates this info for a more programmatic approach.

But we'll start with the easy one (updating the docs). Thanks!

joeldodge79 avatar Sep 17 '20 15:09 joeldodge79

It's also possible to find out the exact API server url using the /versions endpoint on the Looker web server now. See the api_server_url value to retrieve that. You can GET the payload from the Looker web server, and use the api_server_url as the base url for the SDK initialization. We should also create an example or initializer that uses that for each SDK.

jkaster avatar Mar 30 '21 22:03 jkaster