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

req.accepts is not a function #4676

Open
danil-z opened this issue Jul 5, 2018 · 2 comments
Open

req.accepts is not a function #4676

danil-z opened this issue Jul 5, 2018 · 2 comments
Labels
docs Related to the content of the documentation itself (i.e. not any particular feature on sailsjs.com) does this answer your question? more info please

Comments

@danil-z
Copy link

danil-z commented Jul 5, 2018

Documentation says req object has method accepts but apparently it doesn't.

I'm getting this in my controller with sails 1.0
TypeError: req.accepts is not a function

@rachaelshaw
Copy link
Member

@danil-z could you provide your version info or an example of how you're trying to use req.accepts() in tour code? I just tried it out in a fresh Sails app and it's working fine for me, so my guess is there's some kind of version issue or usage error going on.

@raqem raqem transferred this issue from balderdashy/sails-docs Mar 12, 2019
@raqem raqem added does this answer your question? docs Related to the content of the documentation itself (i.e. not any particular feature on sailsjs.com) and removed needs cleanup labels Mar 12, 2019
@balderdashy balderdashy deleted a comment from sailsbot Mar 12, 2019
@raqem
Copy link
Contributor

raqem commented Mar 12, 2019

Hi @danil-z,
We are moving over all open Sails issues into one repo to try and keep a better eye on things.
Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Related to the content of the documentation itself (i.e. not any particular feature on sailsjs.com) does this answer your question? more info please
Development

No branches or pull requests

5 participants