Issue when using Oak send(): Error from user's HttpBody stream: body write aborted #457
-
|
I've been having some difficulties when using Oak Any thoughts on what I'm doing wrong and/or if others have encountered this? Then getting this error in terminal: Getting this error in browser console: app.js is as followshome.js route is as follows: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Okay, it seems like the issue was around using a templating engine. It was fine once I removed the EJS engine and replaced it with a template string to generate the HTML. |
Beta Was this translation helpful? Give feedback.
Okay, it seems like the issue was around using a templating engine. It was fine once I removed the EJS engine and replaced it with a template string to generate the HTML.
I added the adapter for the EJS template engine; however, it wasn't getting much further. So, now
const bodyis referring to a template string.