react-html5-camera-photo icon indicating copy to clipboard operation
react-html5-camera-photo copied to clipboard

How to test with HTTPS

Open jd-boyd opened this issue 1 year ago • 1 comments

I'm trying to work out how to change some behaviour in this library. I might file issues about what I want once I figure out more of what it should look like.

In the meantime, I want to test an mobile, and I'm having trouble with that. I did npm install of head. I think did npm start, and that runs on localhost:3000, which I can test on my desktop web browsers. However, this is without HTTPS, which means no testing this on Android/iOS. If I instead run HTTPS=true npm start, I get this error in the terminal windows:

Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
node:internal/buffer:961
    super(bufferOrLength, byteOffset, length);
    ^

RangeError: Invalid typed array length: -4095
    at new Uint8Array (<anonymous>)
    at new FastBuffer (node:internal/buffer:961:5)
    at Handle.onStreamRead [as onread] (node:internal/stream_base_commons:189:19)
    at Stream.<anonymous> (/home/jdboyd/work/mvp/react-html5-camera-photo/node_modules/handle-thing/lib/handle.js:120:12)
    at Stream.emit (node:events:526:35)
    at endReadableNT (/home/jdboyd/work/mvp/react-html5-camera-photo/node_modules/readable-stream/lib/_stream_readable.js:1010:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.17.0

I apologize for not being an experience react dev, so I may be missing something obvious. If there is an obvious step I should be doing for HTTP testing, it might be nice if that was added to the README.

jd-boyd avatar Aug 07 '23 07:08 jd-boyd