snow-flow 10.0.1-dev.419 → 10.0.1-dev.420
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -168,7 +168,7 @@ async function createFlowViaScheduledJob(
|
|
|
168
168
|
" snap.setValue('access', 'public');",
|
|
169
169
|
" snap.setValue('active', true);",
|
|
170
170
|
" snap.setValue('master', true);",
|
|
171
|
-
" snap.setValue('status', '
|
|
171
|
+
" snap.setValue('status', 'published');",
|
|
172
172
|
" try { snap.setValue('sc_callable', false); } catch(e) {}",
|
|
173
173
|
" try { snap.setValue('callable_by_client_api', false); } catch(e) {}",
|
|
174
174
|
" snapId = snap.insert();",
|
|
@@ -1130,7 +1130,7 @@ async function registerFlowWithEngine(
|
|
|
1130
1130
|
): Promise<{ success: boolean; method: string; attempts: string[] }> {
|
|
1131
1131
|
var attempts: string[] = [];
|
|
1132
1132
|
|
|
1133
|
-
// Helper: try a POST and classify the result
|
|
1133
|
+
// Helper: try a POST and classify the result (capture error body for diagnostics)
|
|
1134
1134
|
async function tryPost(label: string, url: string, body?: any): Promise<boolean> {
|
|
1135
1135
|
try {
|
|
1136
1136
|
await client.post(url, body || {});
|
|
@@ -1138,7 +1138,9 @@ async function registerFlowWithEngine(
|
|
|
1138
1138
|
return true;
|
|
1139
1139
|
} catch (e: any) {
|
|
1140
1140
|
var s = e.response?.status || 'err';
|
|
1141
|
-
|
|
1141
|
+
var errBody = '';
|
|
1142
|
+
try { errBody = JSON.stringify(e.response?.data || '').substring(0, 150); } catch (_) {}
|
|
1143
|
+
attempts.push(label + ': ' + s + (errBody ? ' ' + errBody : ''));
|
|
1142
1144
|
return false;
|
|
1143
1145
|
}
|
|
1144
1146
|
}
|