paypal / AATT

Automated Accessibility Testing Tool
BSD 3-Clause "New" or "Revised" License
602 stars 106 forks source link

Error: Receive E2BIG(argument too long) error when using evaluate API #23

Closed shadowgamefly closed 7 years ago

shadowgamefly commented 7 years ago

Hi, I am using evaluate end for automate testing. While a dozens of other pages like google, etc works. All our pages received the error likes below. It seems to be a AATT error, but I was unable to catch it in the app.js.

Thanks

Error: spawn E2BIG
   at exports._errnoException (util.js:1026:11)
   at ChildProcess.spawn (internal/child_process.js:317:11)
   at exports.spawn (child_process.js:471:9)
   at Object.exports.execFile (child_process.js:190:15)
   at /AATT/app.js:220:17
   at Layer.handle [as handle_request] (/AATT/node_modules/express/lib/router/layer.js:82:5)
   at next (/AATT/node_modules/express/lib/router/route.js: 100:13)
   at Route.dispatch (/AATT/node_modules/express/lib/router/route.js:81:3)
   at Layer.handle [as handle_request] (/AATT/node_modules/express/lib/router/layer.js:82:5)
   at /AATT/node_modules/express/lib/router/index.js:233:24

mpnkhan commented 7 years ago

what version of phantoms and node are you using ? What os? Do you have any public page url where it fails?

shadowgamefly commented 7 years ago

I think I am using the latest official node docker image (tag:latest) to hold the AATT server, and locally on MacOS hosting node along with the new headless Chrome provided in Chrome 59 to send requests to the local server setup in docker. It seems that those short front page works, but those like cnn.com longer ones will fail. The node container's ARG_MAX is more than 2000000 bytes which seems to be weird to generate this linux error.