@mapled/cli 0.4.0 → 0.4.1
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/dist/doctor.js +9 -0
- package/package.json +1 -1
package/dist/doctor.js
CHANGED
|
@@ -360,6 +360,15 @@ export function checkWebhook(webhook) {
|
|
|
360
360
|
if (last.status === "pending") {
|
|
361
361
|
return { key: "webhook", label, status: "warning", detail: `The last delivery to ${host} is still pending.` };
|
|
362
362
|
}
|
|
363
|
+
if (last.error === "blocked") {
|
|
364
|
+
// Mapled resolved the host to a private address and never connected
|
|
365
|
+
return {
|
|
366
|
+
key: "webhook",
|
|
367
|
+
label,
|
|
368
|
+
status: "failed",
|
|
369
|
+
detail: `${host} resolves to a private address, which Mapled can't reach. Point the webhook at the public deployment.`,
|
|
370
|
+
};
|
|
371
|
+
}
|
|
363
372
|
const reason = last.responseStatus ? `responded ${last.responseStatus}` : (last.error ?? "failed");
|
|
364
373
|
return {
|
|
365
374
|
key: "webhook",
|
package/package.json
CHANGED