Closed Bug 1319635 Opened 7 years ago Closed 7 years ago

[traceback] ValueError: Invalid boundary in multipart form: b'' [antenna]

Categories

(Socorro :: Antenna, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

References

Details

Attachments

(1 file)

Saw this in Sentry error email:

"""
ValueError: Invalid boundary in multipart form: b''
(5 additional frame(s) were not displayed)
...
  File "antenna/metrics.py", line 235, in _timer_decorator
    return fun(*args, **kwargs)
  File "antenna/breakpad_resource.py", line 230, in on_post
    raw_crash, dumps = self.extract_payload(req)
  File "antenna/breakpad_resource.py", line 140, in extract_payload
    fs = cgi.FieldStorage(fp=data, environ=req.env, keep_blank_values=1)
"""

https://sentry.prod.mozaws.net/operations/antenna-stage/issues/369460/
I should look into this before we put Antenna into production. Making it block Antenna tracker bug and grabbing it to look into next week.
Assignee: nobody → willkg
Blocks: 1315258
Status: NEW → ASSIGNED
I can reproduce the issue with this curl request:

"""
curl \
 -X POST \
 --compressed \
 -H "Accept: */*" \
 -H "Accept-Encoding: gzip, deflate" \
 -H "Connection: close" \
 -H "Content-Length: 778385" \
 -H "Content-Type: multipart/form-data" \
 -H "Productname: Firefox" \
 -H "User-Agent: python-requests/2.12.1" \
 -H "Version: 1" \
 "http://localhost:8000/submit"
"""

We can run that against -dev by changing the last line.
I landed PR 135. Will test on -dev as soon as it's pushed out.
Mmm... it's not kicking up errors, but it is hanging. I'll have to look into it--can't tell if it's hanging in nginx or if it's hanging in Antenna. I have a system test that hangs in Antenna when there's no payload.

I'm going to call this fixed since it's not raising the error anymore. The hanging issue is a separate issue.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Switching Antenna bugs to Antenna component.
Component: General → Antenna
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: