jeffreyhorner / rapache

R embedded inside Apache
http://www.rapache.net/
Apache License 2.0
137 stars 32 forks source link

superfluous warnings? #21

Closed jeroen closed 10 years ago

jeroen commented 10 years ago

The OpenCPU error.log is filled with thousands of these:

No apreq2 parser for 'application/json'
No apreq2 parser for 'application/json'
[Sat Dec 21 13:17:43 2013] [error] [client 131.179.144.170] rApache Notice!, referer: http://slidify.github.io/playground/
No apreq2 parser for 'application/json'
[Sat Dec 21 13:20:25 2013] [error] [client 131.179.144.170] rApache Notice!
Can't read with R since libapreq already started![Sat Dec 21 13:20:25 2013] [error] [client 131.179.144.170] rApache Notice!
Can't read with R since libapreq already started![Sat Dec 21 13:20:39 2013] [error] [client 131.179.144.170] rApache Notice!, referer: http://slidify.github.io/playground/
No apreq2 parser for 'application/json'
[Sat Dec 21 13:21:14 2013] [error] [client 131.179.144.170] rApache Notice!
Can't read with R since libapreq already started![Sat Dec 21 13:21:15 2013] [error] [client 131.179.144.170] rApache Notice!
Can't read with R since libapreq already started![Sat Dec 21 13:25:08 2013] [error] [client 131.179.144.170] rApache Notice!, referer: http://rcharts.io/playground/

So there are two warnings here. One is

 No apreq2 parser for 'application/json'

This is expected; the application is manually parsing input using receiveBin(). Can we make an option to suppress these warnings?

The other one i'm less certain about:

Can't read with R since libapreq already started![Sat Dec 21 13:20:39 2013] [error]

It seems to be related to the other warning. Can we ignore this one as well?

jeffreyhorner commented 10 years ago

Fixed

jeroen commented 10 years ago

So these warnings were harmless, or did you actually fix a problem?

jeroen commented 10 years ago

I'm still a bit worried about the second one. Did that mean the application called receiveBin() but wasn't able to read the incoming application/json post payload?