Skip to content

fix: patch sdk-experimental for local-proxy HTTP host#348

Open
fjakobs wants to merge 1 commit intomainfrom
fjakobs/patch-sdk
Open

fix: patch sdk-experimental for local-proxy HTTP host#348
fjakobs wants to merge 1 commit intomainfrom
fjakobs/patch-sdk

Conversation

@fjakobs
Copy link
Copy Markdown
Collaborator

@fjakobs fjakobs commented May 5, 2026

Summary

  • Bumped @databricks/sdk-experimental from 0.14.2 to 0.15.0
  • Added patch-package as a devDependency and wired it into postinstall
  • Added patches/@databricks+sdk-experimental+0.15.0.patch — patches dist/config/Config.js to preserve scheme + port instead of forcing https://, and dist/api-client.js to use http.Agent for http:// hosts

This is a workaround for the SDK upgrading http:// URLs to https://, which breaks the local API proxy at http://127.0.0.1:8004. Backported from universe PR #1876469. Will be unnecessary once databricks-sdk-js#392 is released.

Test plan

  • Verify npm install in a generated template applies the patch successfully
  • Verify SDK calls work against an http:// local proxy

This pull request and its description were written by Isaac.

Workaround for @databricks/sdk-experimental upgrading http:// URLs to
https://, which breaks the local API proxy at http://127.0.0.1:8004.

- Bump @databricks/sdk-experimental from 0.14.2 to 0.15.0
- Add patch-package as a devDependency
- Run patch-package in postinstall before typegen
- Add patch for dist/config/Config.js (preserve scheme + port) and
  dist/api-client.js (use http.Agent for http:// hosts)

Backported from universe PR #1876469. This will be unnecessary once
databricks/databricks-sdk-js#392 is released and AppKit picks it up.

Co-authored-by: Isaac
@fjakobs fjakobs requested a review from a team as a code owner May 5, 2026 17:17
@fjakobs fjakobs requested a review from MarioCadenas May 5, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant