-
Notifications
You must be signed in to change notification settings - Fork 774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException in ProxyUtils.isHead #303
Comments
This is very strange, indeed. Which version of LP are you using? In the current version, the only thing that could cause an NPE at ProxyUtils.java:396 is if the
|
This has been reported before as well. There is a discussion on this here - On Sun, Jun 19, 2016 at 3:45 AM, Jason Hoetger notifications@github.com
|
If netty fails to parse the httpObject correctly... it will catch the exception and add it to decodeResult as a failure... It won't show in LittleProxy's log unless you have its level set to debug :
The currentHttpRequest will be null and cause a NPE. |
@zboralski - is there a URL you know of that consistently reproduces this issue? This is very helpful information indeed. |
@jekh if you want to reproduce the issue: LittleProxy is running on port 8080
In another terminal
|
Thank you, @zboralski, that was extremely helpful. I'm able to repro the issue consistently, and I see what's happening. It looks like there are two separate issues that need to be resolved:
I'm going to work on a fix for this and see if I can get it out for review soon enough to make the next release. Thanks again, @zboralski, this issue has been around for a long time and it's great to finally understand why. |
This should be fixed now in 1.1.1. I've been testing with it extensively and have not run into this issue. Feel free to reopen if you see it again. HUGE thanks to @zboralski for the steps to repro this! |
I don't have many details on how to reproduce this as it occurs very rarely but I do see this show up in the server logs every few days. What I can share is that I am configuring LittleProxy with HttpFiltersSourceAdapter, ActivityTracker, and MitmManager.
The text was updated successfully, but these errors were encountered: