Internal Server Error

I have this problem, i need help
No description
No description
41 Replies
Brody
Brody11mo 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_w1z4rd11mo ago
@flpcrazzy can you share the logs of the service ?
flpcrazzy
flpcrazzy11mo 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
Brody11mo ago
that does not give either of us access to your logs
t3ch_w1z4rd
t3ch_w1z4rd11mo ago
if you can copy paste few lines of code from there it might be helpful
flpcrazzy
flpcrazzy11mo ago
Can I send you the Railway account login so you can check?
t3ch_w1z4rd
t3ch_w1z4rd11mo ago
#typebot internal server error Check this chat
flpcrazzy
flpcrazzy11mo ago
OK
flpcrazzy
flpcrazzy11mo ago
No description
flpcrazzy
flpcrazzy11mo ago
❌ Invalid environment variables: { ENCRYPTION_SECRET: [ 'String must contain exactly 32 character(s)' ] }
Brody
Brody11mo ago
did you not use the ${{secret(32)}} when you created the template?
flpcrazzy
flpcrazzy11mo ago
I didn't change anything, I left everything default
Brody
Brody11mo ago
ohhhhh maybe you deployed this template when that template variable wasn't rendering it's since been fixed
flpcrazzy
flpcrazzy11mo ago
This last deploy I just did now
t3ch_w1z4rd
t3ch_w1z4rd11mo ago
but this wasn't a issue till date. I have set this from template itself as default variable
Brody
Brody11mo ago
yes but it only renders when you first deploy, and they could have deployed this template when that variable wasn't rendering
flpcrazzy
flpcrazzy11mo ago
ok I got it What can I do to resolve the issue?
Brody
Brody11mo ago
generate your own 32 character key and use it
flpcrazzy
flpcrazzy11mo ago
Where can I generate this key? and where do i put the key?
Brody
Brody11mo ago
lookup any key generator online, and you put it in your service variables
flpcrazzy
flpcrazzy11mo ago
Ok, I'll try to do that and report back here
flpcrazzy
flpcrazzy11mo ago
No description
flpcrazzy
flpcrazzy11mo ago
No description
flpcrazzy
flpcrazzy11mo ago
I solved that previous problem, but I'm still having problem with the preview url
flpcrazzy
flpcrazzy11mo ago
No description
flpcrazzy
flpcrazzy11mo ago
No description
Brody
Brody11mo ago
try setting NEXTAUTH_URL_INTERNAL to https://${{RAILWAY_PUBLIC_DOMAIN}} in the builders service variables
flpcrazzy
flpcrazzy11mo ago
No description
flpcrazzy
flpcrazzy11mo ago
I added the variable and did the redeploy but the error still persists
Brody
Brody11mo ago
okay just replace the localhost with the domain from railway
flpcrazzy
flpcrazzy11mo ago
No description
flpcrazzy
flpcrazzy11mo ago
No description
Brody
Brody11mo ago
shouldn't you use the builders domain?
flpcrazzy
flpcrazzy11mo ago
I'm using
No description
flpcrazzy
flpcrazzy11mo 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
Brody11mo ago
no I mean use the builders domain in the webhook url
flpcrazzy
flpcrazzy11mo ago
here?
No description
Brody
Brody11mo ago
what no not at all instead of localhost:3001 use the builders domain
flpcrazzy
flpcrazzy11mo ago
in viewer url?
Brody
Brody11mo ago
use the builders domain instead of localhost:3001
flpcrazzy
flpcrazzy11mo ago
I tried but it didn't work