sdk-codegen
sdk-codegen copied to clipboard
Port should be updated from 19999 to 443
👋 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?
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!
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.