Skip to content

Setting Timeout returns 500 error #414

@AutomatedTester

Description

@AutomatedTester

When Calling PUT /proxy/[port]/timeout am getting 500 error (see below).

Failing test is https://github.com/AutomatedTester/browsermob-proxy-py/blob/master/test/test_client.py#L215

which calls

https://github.com/AutomatedTester/browsermob-proxy-py/blob/master/browsermobproxy/client.py#L258

(Pdb) resp.text
u'<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>\n<title>Error 500 Exception [IllegalStateException - "LittleProxy implementation does not allow changes to connect timeout after proxy has been started"] thrown by event method [public com.google.sitebricks.headless.Reply net.lightbody.bmp.proxy.bricks.ProxyResource.timeout(int,com.google.sitebricks.headless.Request)]\n\nat net.lightbody.bmp.BrowserMobProxyServer.setConnectTimeout(BrowserMobProxyServer.java:896)\n(See below for entire trace.)\n</title>\n</head>\n<body>\n<h2>HTTP ERROR: 500</h2>\n<p>Problem accessing /proxy/8183/timeout. Reason:\n<pre>    Exception [IllegalStateException - "LittleProxy implementation does not allow changes to connect timeout after proxy has been started"] thrown by event method [public com.google.sitebricks.headless.Reply net.lightbody.bmp.proxy.bricks.ProxyResource.timeout(int,com.google.sitebricks.headless.Request)]\n\nat net.lightbody.bmp.BrowserMobProxyServer.setConnectTimeout(BrowserMobProxyServer.java:896)\n(See below for entire trace.)\n</pre></p>\n<hr /><i><small>Powered by Jetty://</small></i>\n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n                                                \n</body>\n</html>\n'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions