barrycumbie / solid-fishstick-papa-snowcats

https://solid-fishsticks-papa-snowcats.onrender.com/read
GNU General Public License v3.0
1 stars 1 forks source link

failed deploy on Render "Internal Server Error" #17

Open barrycumbie opened 8 months ago

barrycumbie commented 8 months ago

local devBox working for #12 and #11 but like, can't get on Render to work.

I suspect it's cuz get-to-slash has errors and we've been 🔨 on get-to-slash-read

barrycumbie commented 8 months ago

Yep...

Payoff 💰

get-to-slash-read works: https://solid-fishsticks-papa-snowcats.onrender.com/read

Screen Shot 2024-02-22 at 7 56 11 AM

Problem

my render: https://solid-fishsticks-papa-snowcats.onrender.com/ => Internal Server Error

& the logs are clear:

papa app listening on port 10000
Feb 22 07:52:40 AMYour service is live 🎉
Feb 22 07:52:41 AMReferenceError: /opt/render/project/src/views/index.ejs:7
Feb 22 07:52:41 AM    5| <p>I\'m Logan Beckman.</p>
Feb 22 07:52:41 AM    6|     
Feb 22 07:52:41 AM >> 7| <p><%= myResultClient.length %></p>
Feb 22 07:52:41 AM    8| 
Feb 22 07:52:41 AM    9| <% for (var i=0; i< myResultClient.length; i++ ) { %>
Feb 22 07:52:41 AM    10| 
Feb 22 07:52:41 AM
Feb 22 07:52:41 AMmyResultClient is not defined
Feb 22 07:52:41 AM    at eval ("/opt/render/project/src/views/index.ejs":13:26)
Feb 22 07:52:41 AM    at index (/opt/render/project/src/node_modules/ejs/lib/ejs.js:703:17)
Feb 22 07:52:41 AM    at tryHandleCache (/opt/render/project/src/node_modules/ejs/lib/ejs.js:274:36)
Feb 22 07:52:41 AM    at exports.renderFile [as engine] (/opt/render/project/src/node_modules/ejs/lib/ejs.js:491:10)
Feb 22 07:52:41 AM    at View.render (/opt/render/project/src/node_modules/express/lib/view.js:135:8)
Feb 22 07:52:41 AM    at tryRender (/opt/render/project/src/node_modules/express/lib/application.js:657:10)
Feb 22 07:52:41 AM    at Function.render (/opt/render/project/src/node_modules/express/lib/application.js:609:3)
Feb 22 07:52:41 AM    at ServerResponse.render (/opt/render/project/src/node_modules/express/lib/response.js:1039:7)
Feb 22 07:52:41 AM    at /opt/render/project/src/app.js:69:7
Feb 22 07:52:41 AM    at Layer.handle [as handle_request] (/opt/render/project/src/node_modules/express/lib/router/layer.js:95:5)
Feb 22 07:54:00 AMReferenceError: /opt/render/project/src/views/index.ejs:7
Feb 22 07:54:00 AM    5| <p>I\'m Logan Beckman.</p>
Feb 22 07:54:00 AM    6|     
Feb 22 07:54:00 AM >> 7| <p><%= myResultClient.length %></p>
Feb 22 07:54:00 AM    8| 
Feb 22 07:54:00 AM    9| <% for (var i=0; i< myResultClient.length; i++ ) { %>
Feb 22 07:54:00 AM    10| 
Feb 22 07:54:00 AM
Feb 22 07:54:00 AMmyResultClient is not defined
Feb 22 07:54:00 AM    at eval ("/opt/render/project/src/views/index.ejs":13:26)
Feb 22 07:54:00 AM    at index (/opt/render/project/src/node_modules/ejs/lib/ejs.js:703:17)
Feb 22 07:54:00 AM    at tryHandleCache (/opt/render/project/src/node_modules/ejs/lib/ejs.js:274:36)
Feb 22 07:54:00 AM    at exports.renderFile [as engine] (/opt/render/project/src/node_modules/ejs/lib/ejs.js:491:10)
Feb 22 07:54:00 AM    at View.render (/opt/render/project/src/node_modules/express/lib/view.js:135:8)
Feb 22 07:54:00 AM    at tryRender (/opt/render/project/src/node_modules/express/lib/application.js:657:10)
Feb 22 07:54:00 AM    at Function.render (/opt/render/project/src/node_modules/express/lib/application.js:609:3)
Feb 22 07:54:00 AM    at ServerResponse.render (/opt/render/project/src/node_modules/express/lib/response.js:1039:7)
Feb 22 07:54:00 AM    at /opt/render/project/src/app.js:69:7
Feb 22 07:54:00 AM    at Layer.handle [as handle_request] (/opt/render/project/src/node_modules/express/lib/router/layer.js:95:5)
Feb 22 07:54:02 AM==> Detected service running on port 10000
Feb 22 07:54:02 AM==> Docs on specifying a port: https://render.com/docs/web-services#port-detection
Feb 22 07:54:02 AMmyResultServer: Barry