now-sdk install fails silently on second deploy — requires --reinstall every time #37
Replies: 1 comment 6 replies
-
|
Did you also do a now-sdk pack? With sdk 3.0 they changed the build process to break up the transpiling and the zip packing. Build does the xml creation and pack creates the zip to install. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey team — I'm running into an issue where
now-sdk installonly works on the first deploy (fresh install).Any subsequent deploy (e.g., after adding a column to a table) fails silently with:
The app is not updated on the instance. Using
--reinstallworks every time, but that's destructive since ituninstalls the app first.
Repro
now-sdk build && now-sdk install --auth <alias>— works (fresh install).now.tsfilenow-sdk build && now-sdk install --auth <alias>— failsnow-sdk build && now-sdk install --auth <alias> --reinstall— works (but uninstalls first)Tested On
Same behavior on both instances, so it doesn't seem instance-specific.
What I've Found
Looking at the source, it seems like on upgrade (vs fresh install),
sn_appclient_upload_processor.doreturnsa non-JSON response. In
uploadScopedAppPackage, the JSON check on the response falls through, and there's acommented-out error throw on line ~173:
So the method returns undefined, and the caller polls sys_upgrade_history for 30 seconds, finds nothing, and
throws the vague error.
Questions
supported alternative for iterative development?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions