Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when username does not exist #144

Closed
PabloCastellano opened this issue May 4, 2021 · 0 comments 路 Fixed by #170
Closed

Crash when username does not exist #144

PabloCastellano opened this issue May 4, 2021 · 0 comments 路 Fixed by #170
Labels
馃悰 bug Something isn't working

Comments

@PabloCastellano
Copy link
Contributor

PabloCastellano commented May 4, 2021

Found a bug? Please fill out the sections below. 馃憤

Issue Summary

Error 500 is returned, see traceback below. It should return 404 as https://CALENDSO_URI/unexisting/ does.

TypeError: Cannot read property 'id' of null
    at getServerSideProps (/home/pablo/calendso/.next/server/pages/[user]/[type].js:2974:20)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async renderToHTML (/home/pablo/calendso/node_modules/next/dist/next-server/server/render.js:40:215)
    at async /home/pablo/calendso/node_modules/next/dist/next-server/server/next-server.js:111:97
    at async /home/pablo/calendso/node_modules/next/dist/next-server/server/next-server.js:104:142
    at async Server.renderToHTMLWithComponents (/home/pablo/calendso/node_modules/next/dist/next-server/server/next-server.js:136:387)
    at async Server.renderToHTML (/home/pablo/calendso/node_modules/next/dist/next-server/server/next-server.js:137:1088)
    at async Server.render (/home/pablo/calendso/node_modules/next/dist/next-server/server/next-server.js:74:255)
    at async Object.fn (/home/pablo/calendso/node_modules/next/dist/next-server/server/next-server.js:58:672)
    at async Router.execute (/home/pablo/calendso/node_modules/next/dist/next-server/server/router.js:25:67)

Steps to Reproduce

  1. Go to https://CALENDSO_URI/unexisting/type

Technical details

  • Browser Firefox
  • Node.js 14.16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant