Coder Social home page Coder Social logo

zero-archive / node-url-shortener Goto Github PK

View Code? Open in Web Editor NEW
267.0 15.0 104.0 179 KB

A modern, minimalist, and lightweight URL shortener using Node.js and Redis

Home Page: https://github.com/dotzero/node-url-shortener

License: MIT License

JavaScript 83.18% CSS 1.08% HTML 15.73%
nodejs redis javascript shortener

node-url-shortener's Issues

req.body.long_url is undefined

Hey,

Thanks for creating this! Awesome library!

I'm running into an issue req.body.long_url being undefined no matter if I try raw json, form-data or any other option I have for a parameter.

Do you have any advice?

Thanks!

Cannot call method of 'parse' of undefined.

root@dedi:/path_to_node_project/node# node server.js
Running in development mode @ http://domain.tld (altered for security reasons)
Caught exception: TypeError: Cannot call method 'parse' of undefined
TypeError: Cannot call method 'parse' of undefined
at Array.uglifyJsOptimize as 0
at modify (/path_to_node_project/node/node_modules/connect-assetmanager/lib/assetmanager.js:275:42)
at manipulate (/path_to_node_project/node/node_modules/connect-assetmanager/lib/assetmanager.js:281:7)
at Function.content (/path_to_node_project/node/node_modules/connect-assetmanager/lib/assetmanager.js:231:11)
at next (/path_to_node_project/node/node_modules/connect-assetmanager/node_modules/step/lib/step.js:51:23)
at /path_to_node_project/node/node_modules/connect-assetmanager/node_modules/step/lib/step.js:83:14
at check (/path_to_node_project/node/node_modules/connect-assetmanager/node_modules/step/lib/step.js:99:9)
at process._tickCallback (node.js:415:13)

Any advice?

requests 500

TypeError: Cannot read property 'utf8' of undefined
at module.exports.headers.Last-Modified (/opt/zeebox/node-url-shortener/node_modules/connect-assetmanager/lib/assetmanager.js:357:36)
at Array.forEach (native)
at module.exports.headers.Last-Modified (/opt/zeebox/node-url-shortener/node_modules/connect-assetmanager/lib/assetmanager.js:352:36)
at module.exports.settings.forEach (/opt/zeebox/node-url-shortener/node_modules/connect-assetmanager/lib/assetmanager.js:32:6)
at Array.forEach (native)
at Object.module.exports.settings.forEach (/opt/zeebox/node-url-shortener/node_modules/connect-assetmanager/lib/assetmanager.js:30:22)
at Object.assetManager as handle
at next (/opt/zeebox/node-url-shortener/node_modules/connect/lib/http.js:204:15)
at Object.cookieParser as handle
at next (/opt/zeebox/node-url-shortener/node_modules/connect/lib/http.js:204:15)

--quiet -q parameter?

I'm running this as a systemd service and my journal get spammed with gets
Is there any way to only show error messages?

Mar 21 21:15:08 1fw201s45z node[10378]: GET / 304 16ms
Mar 21 21:15:08 1fw201s45z node[10378]: GET /static/css/bootstrap-responsive.min.css 304 6ms
Mar 21 21:15:08 1fw201s45z node[10378]: GET /static/css/bootstrap.min.css 304 2ms
Mar 21 21:15:08 1fw201s45z node[10378]: GET /static/css/nus.css 304 0ms
Mar 21 21:15:08 1fw201s45z node[10378]: GET /static/js/jquery.min.js 304 1ms
Mar 21 21:15:08 1fw201s45z node[10378]: GET /static/js/bootstrap.min.js 304 1ms
Mar 21 21:15:08 1fw201s45z node[10378]: GET /static/js/nus.js 304 2ms
Mar 21 21:15:09 1fw201s45z node[10378]: GET /favicon.ico 200 7ms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.