MicrosoftEdge / magic-mirror-demo

A :zap:Magic Mirror:zap: powered by a UWP Hosted Web App :rocket:
Other
1.23k stars 225 forks source link

Do we need/have a mechanism to reduce a size of an image taken for authentication? #8

Open gked opened 8 years ago

gked commented 8 years ago

Came across this issue when debugging UAP app. Basically, If I try to authenticate myself on my desktop with built-in camera, the error is thrown. I looked up similar errors and it looks like this is the type of error that is usually thrown when a server can't take a file due to it's size.

It doesn't repro on my laptop though.

Error: request entity too large at readStream (E:\Projects\Github\Magic-Mirror\node_modules\body-parser\node_modules\raw-body\index.js:196:17) at getRawBody (E:\Projects\Github\Magic-Mirror\node_modules\body-parser\node_modules\raw-body\index.js:106:12) at read (E:\Projects\Github\Magic-Mirror\node_modules\body-parser\lib\read.js:76:3) at rawParser (E:\Projects\Github\Magic-Mirror\node_modules\body-parser\lib\types\raw.js:75:5) at Layer.handle as handle_request at trim_prefix (E:\Projects\Github\Magic-Mirror\node_modules\express\lib\router\index.js:312:13) at E:\Projects\Github\Magic-Mirror\node_modules\express\lib\router\index.js:280:7 at Function.process_params (E:\Projects\Github\Magic-Mirror\node_modules\express\lib\router\index.js:330:12) at next (E:\Projects\Github\Magic-Mirror\node_modules\express\lib\router\index.js:271:10) at expressInit (E:\Projects\Github\Magic-Mirror\node_modules\express\lib\middleware\init.js:33:5) at Layer.handle as handle_request at trim_prefix (E:\Projects\Github\Magic-Mirror\node_modules\express\lib\router\index.js:312:13) at E:\Projects\Github\Magic-Mirror\node_modules\express\lib\router\index.js:280:7 at Function.process_params (E:\Projects\Github\Magic-Mirror\node_modules\express\lib\router\index.js:330:12) at next (E:\Projects\Github\Magic-Mirror\node_modules\express\lib\router\index.js:271:10) at query (E:\Projects\Github\Magic-Mirror\node_modules\express\lib\middleware\query.js:49:5)

jayrenn commented 8 years ago

@gked, yes, we can. I'm curious at what resolution your desktop camera is shooting. I'll stop by later today--I'd like to see this repro in person.