Started getting this error today. Simply start VScode, and this comes up instead of the platformio page.
Have removed platformio, then reinstalled.
exceptions.AttributeError: 'int' object has no attribute 'splitlines'
C:\Users\aero_\.platformio\packages\contrib-pysite\twisted\web\server.py:199 in process
198 ` self._encoder = encoder`
199 ` self.render(resrc)`
200 ` except:`
C:\Users\aero_\.platformio\packages\contrib-pysite\twisted\web\server.py:259 in render
258 ` try:`
259 ` body = resrc.render(self)`
260 ` except UnsupportedMethod as e:`
C:\Users\aero_\.platformio\packages\contrib-pysite\twisted\web\resource.py:250 in render
249 ` raise UnsupportedMethod(allowedMethods)`
250 ` return m(request)`
251 ``
<string>:448 in render_GET
447 ``
448 ``
449 ``
C:\Users\aero_\.platformio\packages\contrib-pysite\twisted\web\http.py:1271 in setHeader
1270 ` """`
1271 ` self.responseHeaders.setRawHeaders(name, [value])`
1272 ``
C:\Users\aero_\.platformio\packages\contrib-pysite\twisted\web\http_headers.py:220 in setRawHeaders
219 ` encodedValues = [_sanitizeLinearWhitespace(v)`
220 ` for v in self._encodeValues(values)]`
221 ``
C:\Users\aero_\.platformio\packages\contrib-pysite\twisted\web\http_headers.py:40 in_sanitizeLinearWhitespace
39 ` """`
40 ` return b' '.join(headerComponent.splitlines())`
41 ``
exceptions.AttributeError: 'int' object has no attribute 'splitlines'
Any ideas?