cozy / cozy-proxy

This repository was part of CozyV2 which has been deprecated - Cozy authentication and routing layer
https://blog.cozycloud.cc/post/2016/11/21/On-the-road-to-Cozy-version-3
GNU Affero General Public License v3.0
26 stars 31 forks source link

ReferenceError: next is not defined #252

Open clochix opened 8 years ago

clochix commented 8 years ago

Error in resetRoutes method with Proxy 2.5.0

error - lib:router | Cannot retrieve applications list.
error - lib:router | [Error: Parsing error : Unexpected token I, body= 
 Internal Server Error]
next is not defined
ReferenceError: next is not defined
    at /usr/local/cozy/apps/proxy/build/server/controllers/index.js:25:14
    at /usr/local/cozy/apps/proxy/build/server/lib/router.js:47:18
    at parseBody (/usr/local/cozy/apps/proxy/node_modules/request-json/main.js:35:12)
    at Request._callback (/usr/local/cozy/apps/proxy/node_modules/request-json/main.js:77:18)
    at Request.self.callback (/usr/local/cozy/apps/proxy/node_modules/request-json/node_modules/request/request.js:121:22)
    at Request.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/cozy/apps/proxy/node_modules/request-json/node_modules/request/request.js:978:14)
    at Request.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/cozy/apps/proxy/node_modules/request-json/node_modules/request/request.js:929:12)
    at IncomingMessage.emit (events.js:117:20)