Commit 0093352
authored
Handle 404 from @databricks/sdk-experimental (#1855)
## Changes
<!-- Summary of your changes that are easy to understand -->
Since #1805 the ApiError does not contain `"RESOURCE_DOES_NOT_EXIST"`
but has 404 error code. This breaks existing fallback logic in uploading
assets & triggering the remote workflows.
This fix solves this by allowing dual responses (since sdk is still
experimental, this seems more reliable than committing to either of
them).
## Tests
<!-- How is this tested? -->
<img width="1840" height="1196" alt="Screenshot 2026-03-13 at 10 54 52"
src="https://github.com/user-attachments/assets/5c8043a5-722d-45f3-9fcb-d1d51cf04b38"
/>
.mov recording:
https://github.com/user-attachments/assets/2a49013a-c09c-4284-a55f-aed8a455f376
## Related
Fixes #18531 parent a8e0f7d commit 0093352
File tree
2 files changed
+13
-5
lines changed- packages/databricks-vscode/src
- run
- sdk-extensions/wsfs
2 files changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
227 | | - | |
228 | | - | |
| 231 | + | |
| 232 | + | |
229 | 233 | | |
230 | 234 | | |
231 | | - | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
157 | | - | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
0 commit comments