5 months ago
Hello Railway Support Team,
We're experiencing critical deployment issues with our frontend service after implementing Supabase Edge Functions integration, and our live site at www.kaisvault.com is currently not accessible.
Project Details:
• Service: kaisvault-frontend
• Repository: https://github.com/richestment/kaisvault-frontend
• Domain: https://www.kaisvault.com
• Current Status: Application failed to respond (Error: "This error appears to be caused by the application")
Recent Changes Made:
Based on Supabase requirements and your previous guidance, we made several architectural changes:
1.
Supabase Edge Functions Integration:
◦ Added wallet-verification Edge Function for wallet authentication
◦ Integrated jose@4.15.9 library for JWT verification with Supabase JWKS
◦ Updated authentication flow to use Supabase's ES256 JWT tokens
2.
Repository Separation (Following Your Previous Advice):
◦ Separated services as recommended by clashing
◦ Frontend: kaisvault-frontend (React + Vite)
◦ Backend: kaisvault-platform-clean (Node.js Express)
◦ Bot System: kaisvault-bot-orchestrator (scheduled tasks)
3.
Cron Jobs Configuration Cleanup:
◦ Initially added cron job code to frontend (incorrect approach)
◦ Recently removed all cron job code from frontend based on Railway documentation
◦ Cleaned up package.json dependencies (removed node-cron, node-fetch, dotenv)
◦ Frontend now serves only React application as intended
Current Deployment Status:
• Railway Dashboard: Shows "Deployment successful"
• Latest Commit: e2f7c8a - "Remove cron job code from frontend"
• Build Logs: Appear successful
• Live Site: Returns "Application failed to respond"
Configuration Files:
• nixpacks.toml: Uses npm run build and npm start (Vite preview)
• package.json: Clean frontend dependencies only
• Environment Variables: Properly configured for Supabase integration
What We've Attempted:
1.
Multiple deployment attempts with different configurations
2.
Removed conflicting cron job code that was causing build issues
3.
Verified all environment variables are set correctly
4.
Confirmed repository connection and branch configuration (main)
5.
Tested locally - application builds and runs properly
Suspected Issues:
Based on our implementation of Supabase Edge Functions and the timing of the issue:
1. Supabase JWT Verification: The new jose library integration for Supabase authentication might be causing runtime issues
2. Environment Variables: Supabase-related environment variables might need Railway-specific configuration
3. Build vs Runtime: Application builds successfully but fails at runtime when accessing Supabase services
4. Port Configuration: Vite preview server might not be binding correctly to Railway's expected port
Technical Context:
We integrated Supabase Edge Functions because:
• Frontend wallet functionality requires wallet-verification Edge Function
• Moved from legacy JWT to Supabase's ES256 JWT tokens with JWKS verification
• This integration is critical for our crypto trading platform's wallet authentication
Request:
Could you please help us investigate:
1. Runtime Logs: Are there specific runtime errors not visible in build logs?
2. Port Binding: Is the Vite preview server properly binding to Railway's expected port?
3. Supabase Integration: Are there known issues with jose library or Supabase Edge Functions on Railway?
4. Environment Variables: Do Supabase-related environment variables need special handling?
Priority:
This is affecting our production crypto trading platform. Users cannot access the application, and our payment processing and wallet authentication systems are offline.
Previous support from clashing was excellent in helping us structure our multi-service architecture correctly. We're hoping for similar guidance to resolve this Supabase integration deployment issue.
Account Information:
• Account: richestment
• Project: kaisvault-frontend
• Previous Tickets: Successfully resolved multi-service deployment architecture with clashing's help
Thank you for your urgent assistance. Happy to provide additional logs, configuration files, or technical details as needed.
Best regards,
KaisVault Team
Sanem
2 Replies
5 months ago
Hey there! We've found the following might help you get unblocked faster:
🧵 KaisVault Platform Backend Deployment Failing with 502 Error
🧵 Urgent: Production Service DNS Resolution Failure (NameResolutionError) - Timeline and Analysis
If you find the answer from one of these, please let us know by solving the thread!
5 months ago
Solved! thank you guys
Status changed to Solved richestment • 5 months ago
