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

Config couch_httpd_auth.timeout doesn't work as expected and throws unhelpful error #465

Open
bdombro opened this issue Jun 16, 2022 · 0 comments

Comments

@bdombro
Copy link

bdombro commented Jun 16, 2022

With a recent update to the cookie dependency, the expires value must be valid when setting cookies. pouchdb-server does not limit the timeout config option, which if too big causes Express to set an invalid date. This also causes an uncaught and hard to troubleshoot error.

Unhelpful Error that bubbles: Cannot read properties of undefined (reading 'getSecurity')

Suggestions:

  1. I created a PR to better bubble errors and be more tolerant of high timeouts.
  2. I also created a PR in Express to better tolerate high maxAges
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

No branches or pull requests

1 participant