Skip to content
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

NoneType error macOS 14.4 #115

Open
pjs7 opened this issue Mar 12, 2024 · 1 comment · May be fixed by #116
Open

NoneType error macOS 14.4 #115

pjs7 opened this issue Mar 12, 2024 · 1 comment · May be fixed by #116

Comments

@pjs7
Copy link

pjs7 commented Mar 12, 2024

Error on Raspberry PI testing with macOS 14.4 (previously working on macOS 14.3.1):

Exception occurred during processing of request from ('fe80::3c29:5bff:feec:becb', 49472, 0, 5)
Traceback (most recent call last):
File "/usr/lib/python3.9/socketserver.py", line 316, in handle request noblock
self.process_request(request, client_address)
File "/usr/lib/python3.9/socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client address, self)
File "/usr/lib/python3.9/socketserver.py", line 720, in init
self.handle()
File "/usr/lib/python3.9/http/server.py", line 427, in handle
self.handle _one_request()
File "/usr/lib/python3.9/http/server.py", line 415, in handle_one_request
method()
File "/usr/local/lib/python3.9/dist-packages/opendrop/server.py", line 326, in do_POST
self.handle_discover()
File "/usr/local/lib/python3.9/dist-packages/opendrop/server.py", line 166, in handle_discover
content_length = int(self.headers["Content-Length"])
TypeError: int() argument must be a string, a bytes-like object or a number, not 'None Type'

@vergenzt vergenzt linked a pull request Mar 14, 2024 that will close this issue
@vergenzt
Copy link

Hey @pjs7! I encountered this same issue, and discovered that this happens because iOS seems to be sending its /Discover post bodies via Transfer-Encoding: chunked, which doesn't include a Content-Length header. Some WIP code to handle it is in a draft PR at #116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants