bottender icon indicating copy to clipboard operation
bottender copied to clipboard

unhandled promise rejection if session driver set "file" on a read-only system

Open aqzhyi opened this issue 6 years ago • 1 comments

Describe the bug

unhandled promise rejection if session driver set "file" on a read-only system such as free plan on ZEIT Now

Unlike local development, there are always restrictions on cloud deployment, especially for free accounts

To Reproduce

  1. bottender.config.js set 'file' as session.driver
  2. $ now
  3. See zeit.co the Runtime tab.

Expected behaviour

A clear and concise description of what you expected to happen.

expect errorMessage to like "You haven't permission to create files"

Screenshots

image

Additional context

  • free plan on ZEIT Now
  • now version 2

aqzhyi avatar Jan 15 '20 16:01 aqzhyi

Hi @hilezi, IMO, there is not much different between errorMessage: Error: EROFS: read-only file system, mkdir.... and You haven't permission to create files.

You could use cloud redis, cloud mongo, or other custom session store that works on distributed or serverless system.

chentsulin avatar Jan 16 '20 07:01 chentsulin