I am getting java.lang.IllegalStateException
:
java.lang.IllegalStateException
: Cannot set request property after connection is made error w
This usually happens if you have in the debug watchers calls, such as conn.getResponseCode()
or anything that queries the request result before the request was actually issued or completed.
This causes, that during debug, a request is performed by the watcher, before having properly set you request, and then it becomes invalid.