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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callback(): TypeError: string is not a function #15

Open
woffleloffle opened this issue Mar 10, 2015 · 0 comments
Open

callback(): TypeError: string is not a function #15

woffleloffle opened this issue Mar 10, 2015 · 0 comments

Comments

@woffleloffle
Copy link

Browse to a single post, hit refresh in the browser.

  callback(null, 'Posts', {posts: posts});
  ^
TypeError: string is not a function
    at .\app\routes.js:17:7
    at Request.callback (.\node_modules\superagent\lib\node\index.js:746:30)
    at Request.<anonymous> (.\node_modules\superagent\lib\node\index.js:135:10)
    at Request.emit (events.js:95:17)
    at IncomingMessage.<anonymous> (.\node_modules\superagent\lib\node\index.js:938:12)
    at IncomingMessage.emit (events.js:117:20)
    at _stream_readable.js:943:16
    at process._tickCallback (node.js:419:13)

10 Mar 09:00:15 - [nodemon] app crashed - waiting for file changes before starting...

I believe this is due to the duplicate routes:

  • /posts
  • /posts/:id

I'll submit a clean pull request to fix this in a bit.

:{D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant