@@ -123,19 +123,22 @@ jobs:
123123
124124 - name : Debug Supabase connectivity
125125 run : |
126- echo "Checking HTTP endpoint with curl... "
126+ echo "Checking HTTP endpoint with curl"
127127 curl -v http://127.0.0.1:54321 || echo "curl failed"
128128
129- echo "Testing WebSocket connection to supabase realtime... "
130- # Test WebSocket connection using curl (which supports WebSocket)
131- curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Sec-WebSocket-Version: 13" -H "Sec-WebSocket-Key: x3JJHMbDL1EzLkh9GBhXDw==" http://127.0.0.1:54321/realtime/v1/websocket || echo "WS connection failed"
129+ echo "Testing WebSocket connection to supabase realtime with auth "
130+ # Test WebSocket connection with proper authentication parameters
131+ curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Sec-WebSocket-Version: 13" -H "Sec-WebSocket-Key: x3JJHMbDL1EzLkh9GBhXDw==" " http://127.0.0.1:54321/realtime/v1/websocket?apikey=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0&vsn=1.0.0" || echo "WS connection failed"
132132
133- echo "Testing realtime endpoint directly... "
133+ echo "Testing realtime endpoint directly"
134134 curl -v http://127.0.0.1:54321/realtime/v1/ || echo "Realtime endpoint failed"
135135
136- echo "Testing realtime health check... "
136+ echo "Testing realtime health check"
137137 curl -v http://127.0.0.1:54321/realtime/v1/api/ping || echo "Realtime ping failed"
138138
139+ echo "Testing realtime health check with auth"
140+ curl -v -H "apikey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0" http://127.0.0.1:54321/realtime/v1/api/ping || echo "Realtime ping with auth failed"
141+
139142 docker ps --format '{{.Names}}'
140143
141144 echo "docker logs"
@@ -147,7 +150,13 @@ jobs:
147150 echo "Checking realtime container specifically..."
148151 docker logs supabase_realtime_supabase-js --tail 50 || echo "No realtime logs"
149152
153+ echo "Checking Kong logs for WebSocket requests..."
154+ docker logs supabase_kong_supabase-js --tail 20 || echo "No Kong logs"
155+
150156 - name : Build and test expo
157+ env :
158+ SUPABASE_URL : http://127.0.0.1:54321
159+ SUPABASE_ANON_KEY : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
151160 run : |
152161 npm clean-install
153162 npm run build
0 commit comments