acm-uiuc / groot-desktop-frontend

Desktop Frontend for Groot
Other
7 stars 12 forks source link

Debug issue causing app to crash #165

Closed aashishkapur closed 5 years ago

aashishkapur commented 6 years ago
TypeError: ejs:1
 >> 1| <%- include('/usr/src/app/app/views/users/_partials/users.ejs') %>

/usr/src/app/app/views/users/_partials/users.ejs:14
    12|     </thead>
    13|     <tbody>
 >> 14|       <% for (var user of users) { %>
    15|         <tr>
    16|           <td>
    17|             <% if (!user.is_member && user.netid != me.netid) { %>

users[Symbol.iterator] is not a function
    at eval (eval at compile (/usr/src/node_modules/ejs/lib/ejs.js:584:12), <anonymous>:12:23)
    at returnedFn (/usr/src/node_modules/ejs/lib/ejs.js:615:17)
    at include (/usr/src/node_modules/ejs/lib/ejs.js:613:39)
    at eval (eval at compile (/usr/src/node_modules/ejs/lib/ejs.js:584:12), <anonymous>:9:17)
    at returnedFn (/usr/src/node_modules/ejs/lib/ejs.js:615:17)
    at Object.exports.render (/usr/src/node_modules/ejs/lib/ejs.js:414:37)
    at Request._callback (/usr/src/app/app/controllers/users.js:64:34)
    at Request.self.callback (/usr/src/node_modules/request/request.js:186:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
aashishkapur commented 5 years ago

fixed, user service was not returning the correct response, acm-uiuc/groot-user-service#22