Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created March 13, 2018 16:11
Show Gist options
  • Save peterbe/fca3ab72f91869bd3f6218a69dec878b to your computer and use it in GitHub Desktop.
Save peterbe/fca3ab72f91869bd3f6218a69dec878b to your computer and use it in GitHub Desktop.
kinto_1 | "POST /v1/batch?" ? (? ms) 'NoneType' object is not subscriptable errno=999
kinto_1 | Traceback (most recent call last):
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/tweens.py", line 39, in excview_tween
kinto_1 | response = handler(request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/kinto/core/events.py", line 76, in tween
kinto_1 | response = handler(request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/router.py", line 156, in handle_request
kinto_1 | view_name
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/view.py", line 642, in _call_view
kinto_1 | response = view_callable(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/config/views.py", line 181, in __call__
kinto_1 | return view(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/viewderivers.py", line 390, in attr_view
kinto_1 | return view(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/viewderivers.py", line 368, in predicate_wrapper
kinto_1 | return view(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/viewderivers.py", line 439, in rendered_view
kinto_1 | result = view(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/viewderivers.py", line 148, in _requestonly_view
kinto_1 | response = view(request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/cornice/service.py", line 496, in wrapper
kinto_1 | response = view_(request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/kinto/core/views/batch.py", line 145, in post_batch
kinto_1 | use_tweens=False)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/kinto/core/utils.py", line 418, in follow_subrequest
kinto_1 | raise e
kinto_1 | File "/usr/local/lib/python3.6/site-packages/kinto/core/utils.py", line 414, in follow_subrequest
kinto_1 | return request.invoke_subrequest(subrequest, **kwargs), subrequest
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/router.py", line 195, in invoke_subrequest
kinto_1 | return self.invoke_request(request, _use_tweens=use_tweens)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/router.py", line 249, in invoke_request
kinto_1 | response = handle_request(request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/router.py", line 156, in handle_request
kinto_1 | view_name
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/view.py", line 642, in _call_view
kinto_1 | response = view_callable(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/config/views.py", line 181, in __call__
kinto_1 | return view(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/viewderivers.py", line 390, in attr_view
kinto_1 | return view(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/viewderivers.py", line 368, in predicate_wrapper
kinto_1 | return view(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/viewderivers.py", line 301, in secured_view
kinto_1 | return view(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/viewderivers.py", line 439, in rendered_view
kinto_1 | result = view(context, request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/pyramid/viewderivers.py", line 148, in _requestonly_view
kinto_1 | response = view(request)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/cornice/service.py", line 494, in wrapper
kinto_1 | response = view_()
kinto_1 | File "/usr/local/lib/python3.6/site-packages/kinto/core/resource/__init__.py", line 468, in put
kinto_1 | record = self.model.create_record(new_record)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/kinto/core/resource/model.py", line 315, in create_record
kinto_1 | record = super().create_record(record, parent_id)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/kinto/core/resource/model.py", line 191, in create_record
kinto_1 | auth=self.auth)
kinto_1 | File "/usr/local/lib/python3.6/site-packages/kinto/core/storage/postgresql/__init__.py", line 308, in create
kinto_1 | if not inserted['inserted']:
kinto_1 | TypeError: 'NoneType' object is not subscriptable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment