Skill: Wix-GAS Bridge Integrity Check
Use this skill when:
- •Submissions are not appearing in GAS.
- •"Success" message appears but no data moves.
- •You receive
500or404errors from the GAS endpoint.
Step 1: Verify Secrets
The connection relies on GAS_WEB_APP_URL and GAS_API_KEY.
- •Action: Ask user to check Wix Secrets Manager.
- •Check: Does
GAS_WEB_APP_URLend in/exec? (Common fatal error: ending in/edit)
Step 2: Live Log Trace
Run this trace to see where the packet drops.
- •Frontend: Console > "Submitting form..."
- •Backend:
intakeQueue.jsw> "Sending to GAS..." - •GAS Side: View Stackdriver Logs (Executions). Do you see a
POSTrequest?
Step 3: The "Push" Simulation
If the bridge is down, force a manual push to test connectivity.
javascript
// Run this in a temporary backend file to test connection
import { notifyGASOfNewIntake } from 'backend/gasIntegration';
export async function testBridge() {
const result = await notifyGASOfNewIntake('TEST-CASE-ID-001');
console.log(result);
}
Step 4: Common Fixes
- •Redirect Loop: If GAS returns 302, your script is not deployed as "Web App" with "Execute as: Me" and "Who has access: Anyone".
- •CORS Error: GAS does not support CORS preflight. Use
POSTwithapplication/x-www-form-urlencodedorJSONproperly stringified.