-
Notifications
You must be signed in to change notification settings - Fork 36
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
/logout does not work #45
Comments
Yup, the issue is browser-request is sending Accept: application/json when the POST request has no body, express json parser is trying to parse the request as json but fails with no body and crashes We can not use .defaults({json: true}) and only add that to requests that have a body, or patch browser-request or express json body parser, I hadnt dont it yet since I was possibly thinking of replacing browser-request with the ajax library from pouchdb, but that part isnt ready yet |
Thank you for your reply. I got easier solution to work around it. Just I have another questions for you. If you have time, please shed some light
Jing On Sun, Dec 21, 2014 at 1:16 PM, Dale Harvey [email protected]
|
I havent solved those problems yet, it seems like it should be possible to have the email launch the installed application but I havent looked into it |
I believe you can use a custom protocol handler in a separate link in the email to load in an app. Something like: The app (afaik) gets that entire string, and can do what it wants with it. I've not personally done this, so your mileage may vary. 🚙 |
call /logout, it return 'bad request 400'
Error: invalid json
at parse (/home/dir/pouch.host/node_modules/body-parser/lib/types/json.js:72:15)
at /home/dir/pouch.host/node_modules/body-parser/lib/read.js:98:18
at IncomingMessage.onEnd (/home/dir/pouch.host/node_modules/body-parser/node_modules/raw-body/index.js:136:7)
at IncomingMessage.g (events.js:175:14)
at IncomingMessage.EventEmitter.emit (events.js:92:17)
at _stream_readable.js:920:16
The text was updated successfully, but these errors were encountered: