Internal Server Error

I have this problem, i need help
No description
No description
41 Replies
Brody
Brody10mo ago
@t3ch_w1z4rd what are these people potentially doing wrong then? deployed 13 hours ago is there a variable they aren't filling out properly?
t3ch_w1z4rd
t3ch_w1z4rd10mo ago
@flpcrazzy can you share the logs of the service ?
flpcrazzy
flpcrazzy10mo ago
Railway
Log Explorer
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Brody
Brody10mo ago
that does not give either of us access to your logs
t3ch_w1z4rd
t3ch_w1z4rd10mo ago
if you can copy paste few lines of code from there it might be helpful
flpcrazzy
flpcrazzy10mo ago
Can I send you the Railway account login so you can check?
t3ch_w1z4rd
t3ch_w1z4rd10mo ago
#typebot internal server error Check this chat
flpcrazzy
flpcrazzy10mo ago
OK
flpcrazzy
flpcrazzy10mo ago
No description
flpcrazzy
flpcrazzy10mo ago
❌ Invalid environment variables: { ENCRYPTION_SECRET: [ 'String must contain exactly 32 character(s)' ] }
Brody
Brody10mo ago
did you not use the ${{secret(32)}} when you created the template?
flpcrazzy
flpcrazzy10mo ago
I didn't change anything, I left everything default
Brody
Brody10mo ago
ohhhhh maybe you deployed this template when that template variable wasn't rendering it's since been fixed
flpcrazzy
flpcrazzy10mo ago
This last deploy I just did now
t3ch_w1z4rd
t3ch_w1z4rd10mo ago
but this wasn't a issue till date. I have set this from template itself as default variable
Brody
Brody10mo ago
yes but it only renders when you first deploy, and they could have deployed this template when that variable wasn't rendering
flpcrazzy
flpcrazzy10mo ago
ok I got it What can I do to resolve the issue?
Brody
Brody10mo ago
generate your own 32 character key and use it
flpcrazzy
flpcrazzy10mo ago
Where can I generate this key? and where do i put the key?
Brody
Brody10mo ago
lookup any key generator online, and you put it in your service variables
flpcrazzy
flpcrazzy10mo ago
Ok, I'll try to do that and report back here
flpcrazzy
flpcrazzy10mo ago
No description
flpcrazzy
flpcrazzy10mo ago
No description
flpcrazzy
flpcrazzy10mo ago
I solved that previous problem, but I'm still having problem with the preview url
flpcrazzy
flpcrazzy10mo ago
No description
flpcrazzy
flpcrazzy10mo ago
No description
Brody
Brody10mo ago
try setting NEXTAUTH_URL_INTERNAL to https://${{RAILWAY_PUBLIC_DOMAIN}} in the builders service variables
flpcrazzy
flpcrazzy10mo ago
No description
flpcrazzy
flpcrazzy10mo ago
I added the variable and did the redeploy but the error still persists
Brody
Brody10mo ago
okay just replace the localhost with the domain from railway
flpcrazzy
flpcrazzy10mo ago
No description
flpcrazzy
flpcrazzy10mo ago
No description
Brody
Brody10mo ago
shouldn't you use the builders domain?
flpcrazzy
flpcrazzy10mo ago
I'm using
No description
flpcrazzy
flpcrazzy10mo ago
I have a problem with the viewer url I have no idea how to solve it, I've tried everything Before it was working normally
Brody
Brody10mo ago
no I mean use the builders domain in the webhook url
flpcrazzy
flpcrazzy10mo ago
here?
No description
Brody
Brody10mo ago
what no not at all instead of localhost:3001 use the builders domain
flpcrazzy
flpcrazzy10mo ago
in viewer url?
Brody
Brody10mo ago
use the builders domain instead of localhost:3001
flpcrazzy
flpcrazzy10mo ago
I tried but it didn't work