dshan
By:
dshan

Error: url must be a relative URL:

August 10, 2014 1.7k views

Hi all, I'm getting a scary error on my droplet when trying to get a Meteor app to run. At first it was just the first part, 'http://httpheader.net' but then overnight this weird Chinese hotel site showed up in the error log...

Does anyone know what's happening here?

Error: url must be a relative URL: http://httpheader.net
    at _.extend.classify (packages/routepolicy/routepolicy.js:103)
    at appUrl (packages/fast-render/lib/server/inject.js:94)
    at Object.RouteController [as handle] (packages/fast-render/lib/server/inject.js:108)
    at next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:190:15)
    at Object.cookieParser [as handle] (/opt/musichunt/app/programs/server/npm/fast-render/main/node_modules/connect/lib/middleware/cookieParser.js:65:5)
    at next (/opt/musichunt[107.170.235.251] /app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:190:15)
    at Object.Package [as handle] (packages/spiderable/spiderable.js:126)
    at next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:190:15)
    at middleware (packages/oauth/oauth_server.js:72)
    at packages/oauth/oauth_server.js:61
Error: url must be a relative URL: http://httpheader.net
    at _.extend.classify (packages/routepolicy/routepolicy.js:103)
    at appUrl (packages/webapp/webapp_server.js:153)
    at Object.handle (packages/webapp/webapp_server.js:486)
    at next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:190:15)
    at next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:192:9)
    at Object.next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:127:23)
    at Utils.extend.onRouteNotFound (packages/iron-router/lib/server/router.js:59)
    at IronRouter.dispatch (packages/iron-router/lib/router.js:275)
    at packages/iron-router/lib/server/router.js:37
Error: url must be a relative URL: http://hotel.qunar.com/render/hoteldiv.jsp?&__jscallback=XQScript_4
    at _.extend.classify (packages/routepolicy/routepolicy.js:103)
    at appUrl (packages/fast-render/lib/server/inject.js:94)
    at Object.RouteController [as handle] (packages/fast-render/lib/server/inject.js:108)
    at next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:190:15)
    at Object.cookieParser [as handle] (/opt/musichunt/app/programs/server/npm/fast-render/main/node_modules/connect/lib/middleware/cookieParser.js:65:5)
    at next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:190:15)
    at Object.Package [as handle] (packages/spiderable/spiderable.js:126)
    at next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:190:15)
    at middleware (packages/oauth/oauth_server.js:72)
    at packages/oauth/oauth_server.js:61
Error: url must be a relative URL: http://hotel.qunar.com/render/hoteldiv.jsp?&__jscallback=XQScript_4
    at _.extend.classify (packages/routepolicy/routepolicy.js:103)
    at appUrl (packages/webapp/webapp_server.js:153)
    at Object.handle (packages/webapp/webapp_server.js:486)
    at next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:190:15)
    at next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:192:9)
    at Object.next (/opt/musichunt/app/programs/server/npm/webapp/main/node_modules/connect/lib/proto.js:127:23)
    at Utils.extend.onRouteNotFound (packages/iron-router/lib/server/router.js:59)
    at IronRouter.dispatch (packages/iron-router/lib/router.js:275)
    at packages/iron-router/lib/server/router.js:37
1 Answer

It looks like it's a known issue in Meteor: Meteor server exception when mistakenly used as a proxy #1212. I recommend subscribing to the GitHub issue so you can get a notification when it's fixed.

Have another answer? Share your knowledge.