Question

Error: url must be a relative URL:

  • Posted on August 10, 2014
  • dshanAsked by dshan

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

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.